mirror of
https://github.com/nlohmann/json.git
synced 2026-07-02 16:54:19 +00:00
Minor: unique_ptr template resolution workaround for MSVC (#5215)
Signed-off-by: drcosmin <cosmin.dr@pm.me>
This commit is contained in:
@@ -20918,7 +20918,7 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
|
||||
};
|
||||
std::unique_ptr<T, decltype(deleter)> obj(AllocatorTraits::allocate(alloc, 1), deleter);
|
||||
AllocatorTraits::construct(alloc, obj.get(), std::forward<Args>(args)...);
|
||||
JSON_ASSERT(obj != nullptr);
|
||||
JSON_ASSERT(obj);
|
||||
return obj.release();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user