@@ -325,9 +325,9 @@ inline void from_json(const BasicJsonType& j, typename BasicJsonType::binary_t&
325325 bin = *j.template get_ptr <const typename BasicJsonType::binary_t *>();
326326}
327327
328- template < typename BasicJsonType, typename ConstructibleObjectType,
329- enable_if_t < is_constructible_object_type<BasicJsonType, ConstructibleObjectType>::value&&
330- !std::is_enum<typename ConstructibleObjectType::key_type>::value, int > = 0 >
328+ template < typename BasicJsonType, typename ConstructibleObjectType,
329+ enable_if_t < is_constructible_object_type<BasicJsonType, ConstructibleObjectType>::value&&
330+ !std::is_enum<typename ConstructibleObjectType::key_type>::value, int > = 0 >
331331inline void from_json (const BasicJsonType& j, ConstructibleObjectType& obj)
332332{
333333 if (JSON_HEDLEY_UNLIKELY (!j.is_object ()))
@@ -348,10 +348,10 @@ inline void from_json(const BasicJsonType& j, ConstructibleObjectType& obj)
348348 obj = std::move (ret);
349349}
350350
351- template <typename BasicJsonType, typename Key, typename Value, typename Compare, typename Allocator,
352- enable_if_t < is_constructible_object_type<BasicJsonType, std::map<Key, Value, Compare, Allocator>>::value&&
353- is_compatible_object_type<BasicJsonType, std::map<Key, Value, Compare, Allocator>>::value&&
354- std::is_enum<Key>::value, int > = 0 >
351+ template < typename BasicJsonType, typename Key, typename Value, typename Compare, typename Allocator,
352+ enable_if_t < is_constructible_object_type<BasicJsonType, std::map<Key, Value, Compare, Allocator>>::value&&
353+ is_compatible_object_type<BasicJsonType, std::map<Key, Value, Compare, Allocator>>::value&&
354+ std::is_enum<Key>::value, int > = 0 >
355355inline void from_json (const BasicJsonType& j, std::map<Key, Value, Compare, Allocator>& m)
356356{
357357 if (JSON_HEDLEY_UNLIKELY (!j.is_object ()))
@@ -361,7 +361,7 @@ inline void from_json(const BasicJsonType& j, std::map<Key, Value, Compare, Allo
361361 m.clear ();
362362 for (const auto & p : j.items ())
363363 {
364- m.emplace (string_to_enum (json (p.key ()),Key ()), p.value ().template get <Value>());
364+ m.emplace (string_to_enum (json (p.key ()), Key ()), p.value ().template get <Value>());
365365 }
366366}
367367
@@ -459,7 +459,7 @@ auto from_json(BasicJsonType&& j, TupleRelated&& t)
459459template < typename BasicJsonType, typename Key, typename Value, typename Compare, typename Allocator,
460460 typename = enable_if_t < !std::is_constructible <
461461 typename BasicJsonType::string_t , Key >::value &&
462- !is_compatible_object_type<BasicJsonType, std::map<Key, Value, Compare, Allocator>>::value>>
462+ !is_compatible_object_type<BasicJsonType, std::map<Key, Value, Compare, Allocator>>::value >>
463463inline void from_json (const BasicJsonType& j, std::map<Key, Value, Compare, Allocator>& m)
464464{
465465 if (JSON_HEDLEY_UNLIKELY (!j.is_array ()))
0 commit comments