Use AllocatorType<ObjectType::value_type>,

instead of hard-coding it for std::map's value_type
This commit is contained in:
gatopeich committed 2020-06-22 18:35:46 +01:00
1 parent 15337b2cc3
commit ddf0a45abb
6 files changed
+10 -12

No files matched your search

+1 -3
View File
@@ -496,9 +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>>>;
AllocatorType<typename ObjectType<StringType, basic_json>::value_type>>;
/*!
@brief a type for an array