Merge pull request #86 from mloskot/ml/fix-tracing_allocator-for-vs2017

Fix prototype of tracing_allocator::deallocate
This commit is contained in:
Hans Dembinski
2018-09-18 09:49:24 +02:00
committed by GitHub

View File

@@ -112,7 +112,7 @@ struct tracing_allocator {
return static_cast<T*>(::operator new(n * sizeof(T)));
}
void deallocate(T*& p, std::size_t n) {
void deallocate(T* p, std::size_t n) {
if (db) {
(*db)[typeid(T)].second += n;
}