🚨 fix compiler warning

This commit is contained in:
Niels Lohmann 2020-04-20 19:42:58 +02:00
parent 3607687a14
commit c0a39b22a6
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69

View file

@ -251,7 +251,7 @@ struct allocator_no_forward : std::allocator<T>
};
template <class... Args>
void construct(T* p, const Args& ... args)
void construct(T* p, const Args& ... args) noexcept(noexcept(::new (static_cast<void*>(p)) T(args...)))
{
// force copy even if move is available
::new (static_cast<void*>(p)) T(args...);