mirror of
https://github.com/nlohmann/json
synced 2024-11-25 13:20:05 +00:00
Roll-back to hard-coded object_t::value_type
This commit is contained in:
parent
fb8c11f25c
commit
5e7bdf1cab
@ -496,12 +496,8 @@ class basic_json
|
||||
using object_t = ObjectType<StringType,
|
||||
basic_json,
|
||||
object_comparator_t,
|
||||
// Note the use of std::map default allocator as a placeholder
|
||||
// to extract the actual ObjectType::value_type
|
||||
AllocatorType<typename
|
||||
ObjectType<StringType, basic_json, object_comparator_t,
|
||||
std::allocator<std::pair<const StringType, basic_json>>
|
||||
>::value_type>>;
|
||||
// Note: this forces object_t::value_type to match std::map's
|
||||
AllocatorType<std::pair<const StringType, basic_json>>>;
|
||||
|
||||
/*!
|
||||
@brief a type for an array
|
||||
|
@ -16355,12 +16355,8 @@ class basic_json
|
||||
using object_t = ObjectType<StringType,
|
||||
basic_json,
|
||||
object_comparator_t,
|
||||
// Note the use of std::map default allocator as a placeholder
|
||||
// to extract the actual ObjectType::value_type
|
||||
AllocatorType<typename
|
||||
ObjectType<StringType, basic_json, object_comparator_t,
|
||||
std::allocator<std::pair<const StringType, basic_json>>
|
||||
>::value_type>>;
|
||||
// Note: this forces object_t::value_type to match std::map's
|
||||
AllocatorType<std::pair<const StringType, basic_json>>>;
|
||||
|
||||
/*!
|
||||
@brief a type for an array
|
||||
|
Loading…
Reference in New Issue
Block a user