From 8db02bcc55db03db1a0b240391472e71289c938e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Art=C3=B6m=20Bakri=20Al-Sarmini?= <3sz3tt+git@gmail.com> Date: Wed, 8 Apr 2020 15:53:14 +0300 Subject: [PATCH] Fix for gcc --- test/src/unit-allocator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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...); } };