diff --git a/test/src/unit-allocator.cpp b/test/src/unit-allocator.cpp index 67281a82..5d48b2ea 100644 --- a/test/src/unit-allocator.cpp +++ b/test/src/unit-allocator.cpp @@ -240,8 +240,7 @@ namespace template struct allocator_no_forward : std::allocator { - using std::allocator::allocator; - + allocator_no_forward() {} template allocator_no_forward(allocator_no_forward) {} @@ -253,6 +252,7 @@ struct allocator_no_forward : std::allocator template void construct(T* p, const Args&... args) { + // force copy even if move is available ::new (static_cast(p)) T(args...); } };