From f1b7ebfb0a68ae8073a3c728a5430e6290fbd5d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20=C5=81oskot?= Date: Mon, 17 Sep 2018 19:25:17 +0200 Subject: [PATCH] Fix prototype of tracing_allocator::deallocate Align the parameter types with std::allocator::deallocate prototype. Otherwise, compilation using MSVC 19.15.26729 fails due to unresolved conversion of the first argument from T* const to T*& --- test/utility.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/utility.hpp b/test/utility.hpp index 2709ac2e..7acb5a55 100644 --- a/test/utility.hpp +++ b/test/utility.hpp @@ -112,7 +112,7 @@ struct tracing_allocator { return static_cast(::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; }