mirror of
https://github.com/nlohmann/json.git
synced 2024-11-28 17:39:02 +08:00
🚨 fix compiler warning
This commit is contained in:
parent
3607687a14
commit
c0a39b22a6
@ -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...);
|
||||
|
Loading…
Reference in New Issue
Block a user