Ignore allocator hardcoded to match std::map
This commit is contained in:
parent
27aaf6f845
commit
15337b2cc3
3 changed files with 6 additions and 4 deletions
|
@ -496,6 +496,7 @@ class basic_json
|
|||
using object_t = ObjectType<StringType,
|
||||
basic_json,
|
||||
object_comparator_t,
|
||||
// TODO: AllocatorType<ObjectType::value_type>
|
||||
AllocatorType<std::pair<const StringType,
|
||||
basic_json>>>;
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@ namespace nlohmann
|
|||
/// ordered_map: a minimal map-like container that preserves insertion order
|
||||
/// for use within nlohmann::basic_json<ordered_map>
|
||||
template <class Key, class T, class IgnoredLess = std::less<Key>,
|
||||
class Allocator = std::allocator<std::pair<Key, T>>,
|
||||
class Container = std::vector<std::pair<Key, T>, Allocator>>
|
||||
class IgnoredAllocator = std::allocator<std::pair<Key, T>>,
|
||||
class Container = std::vector<std::pair<Key, T>>>
|
||||
struct ordered_map : Container
|
||||
{
|
||||
using key_type = Key;
|
||||
|
|
|
@ -15880,8 +15880,8 @@ namespace nlohmann
|
|||
/// ordered_map: a minimal map-like container that preserves insertion order
|
||||
/// for use within nlohmann::basic_json<ordered_map>
|
||||
template <class Key, class T, class IgnoredLess = std::less<Key>,
|
||||
class Allocator = std::allocator<std::pair<Key, T>>,
|
||||
class Container = std::vector<std::pair<Key, T>, Allocator>>
|
||||
class IgnoredAllocator = std::allocator<std::pair<Key, T>>,
|
||||
class Container = std::vector<std::pair<Key, T>>>
|
||||
struct ordered_map : Container
|
||||
{
|
||||
using key_type = Key;
|
||||
|
@ -16348,6 +16348,7 @@ class basic_json
|
|||
using object_t = ObjectType<StringType,
|
||||
basic_json,
|
||||
object_comparator_t,
|
||||
// TODO: AllocatorType<ObjectType::value_type>
|
||||
AllocatorType<std::pair<const StringType,
|
||||
basic_json>>>;
|
||||
|
||||
|
|
Loading…
Reference in a new issue