Use AllocatorType<ObjectType::value_type>,
instead of hard-coding it for std::map's value_type
This commit is contained in:
parent
15337b2cc3
commit
ddf0a45abb
6 changed files with 10 additions and 12 deletions
|
@ -89,7 +89,7 @@ From the template arguments, the following types are derived:
|
|||
```cpp
|
||||
using object_comparator_t = std::less<>;
|
||||
using object_t = ObjectType<StringType, basic_json, object_comparator_t,
|
||||
AllocatorType<std::pair<const StringType, basic_json>>>;
|
||||
AllocatorType<typename ObjectType<StringType, basic_json>::value_type>>;
|
||||
|
||||
using array_t = ArrayType<basic_json, AllocatorType<basic_json>>;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue