1
0
mirror of https://github.com/nlohmann/json.git synced 2026-07-30 23:53:02 +04:00
This commit is contained in:
Niels
2015-10-17 12:51:59 +02:00
parent 73632377bf
commit 746c1a7142
4 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -586,7 +586,7 @@ class basic_json
private:
/// helper for exception-safe object creation
template<typename T, typename... Args>
static T* create( Args&& ... args )
static T* create(Args&& ... args)
{
AllocatorType<T> alloc;
auto deleter = [&](T * object)
+1 -1
View File
@@ -589,7 +589,7 @@ class basic_json
static T* create(Args&& ... args)
{
AllocatorType<T> alloc;
auto deleter = [&](T* object)
auto deleter = [&](T * object)
{
alloc.deallocate(object, 1);
};