mirror of
https://github.com/nlohmann/json.git
synced 2026-02-09 23:52:15 +00:00
🚨 fix compiler warning
This commit is contained in:
@@ -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...);
|
||||
|
||||
Reference in New Issue
Block a user