diff --git a/src/json.hpp b/src/json.hpp index 606dc5629..6a06cacf3 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -116,17 +116,11 @@ struct void_converter }; // Type to help determine between a map or unordered-map type for the -// object_t type alias. Takes advantage of the fact that a map has a -// key_comparer member type and unordered_map has a hasher member type +// object_t type alias. Takes advantage of the fact that an unordered_map +// has a hasher member type template class ObjectType, class Key, class Value, template class AllocatorType, typename Enable = void> -struct object_t_helper{}; -// Specialization that works for the 'map' type -template class ObjectType, class Key, class Value, - template class AllocatorType> -struct object_t_helper::key_compare>::type - > +struct object_t_helper { using type = ObjectType< Key,