mirror of
https://github.com/nlohmann/json.git
synced 2025-07-25 13:41:56 +03:00
remove now-useless traits. check for is_basic_json where needed
This commit is contained in:
@ -1243,7 +1243,7 @@ class basic_json
|
||||
template <typename CompatibleType,
|
||||
typename U = detail::uncvref_t<CompatibleType>,
|
||||
detail::enable_if_t<
|
||||
detail::is_compatible_type<basic_json_t, U>::value, int> = 0>
|
||||
not detail::is_basic_json<U>::value and detail::is_compatible_type<basic_json_t, U>::value, int> = 0>
|
||||
basic_json(CompatibleType && val) noexcept(noexcept(
|
||||
JSONSerializer<U>::to_json(std::declval<basic_json_t&>(),
|
||||
std::forward<CompatibleType>(val))))
|
||||
|
Reference in New Issue
Block a user