Re-add value_type detection to distinguish string types (#3604)
* Re-add value_type detection to is_constructible_string_type trait * Add value_type detection to from_json for strings
This commit is contained in:
1 parent
a714381a5f
commit
a87c1885cb
3 files changed
+10
-4
No files matched your search
@@ -363,8 +363,10 @@ struct is_constructible_string_type
|
||||
#endif
|
||||
|
||||
static constexpr auto value =
|
||||
is_constructible<laundered_type,
|
||||
typename BasicJsonType::string_t>::value;
|
||||
conjunction <
|
||||
is_constructible<laundered_type, typename BasicJsonType::string_t>,
|
||||
is_detected_exact<typename BasicJsonType::string_t::value_type,
|
||||
value_type_t, laundered_type >>::value;
|
||||
};
|
||||
|
||||
template<typename BasicJsonType, typename CompatibleArrayType, typename = void>
|
||||
|
||||
Reference in new issue
Block a user