Fix for gcc

pull/2025/head
Artöm Bakri Al-Sarmini 2020-04-08 15:53:14 +03:00
parent fec0bdd93b
commit 8db02bcc55
1 changed files with 2 additions and 2 deletions

View File

@ -240,8 +240,7 @@ namespace
template<class T>
struct allocator_no_forward : std::allocator<T>
{
using std::allocator<T>::allocator;
allocator_no_forward() {}
template <class U>
allocator_no_forward(allocator_no_forward<U>) {}
@ -253,6 +252,7 @@ struct allocator_no_forward : std::allocator<T>
template <class... Args>
void construct(T* p, const Args&... args)
{
// force copy even if move is available
::new (static_cast<void*>(p)) T(args...);
}
};