🚨 fix compiler warning

pull/2060/head
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
1 changed files with 1 additions and 1 deletions

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...);