Exclude std::any from implicit conversion

This commit is contained in:
Florian Albrechtskirchinger 2022-04-12 09:16:53 +02:00
parent 6ea011f2b6
commit a41b003a3a
2 changed files with 2 additions and 2 deletions

View File

@ -1894,7 +1894,7 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
detail::negation<std::is_same<ValueType, std::string_view>>,
#endif
#if defined(JSON_HAS_CPP_17)
detail::negation < std::is_same<ValueType, std::any>>,
detail::negation<std::is_same<ValueType, std::any>>,
#endif
detail::is_detected_lazy<detail::get_template_function, const basic_json_t&, ValueType>
>::value, int >::type = 0 >

View File

@ -19087,7 +19087,7 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
detail::negation<std::is_same<ValueType, std::string_view>>,
#endif
#if defined(JSON_HAS_CPP_17)
detail::negation < std::is_same<ValueType, std::any>>,
detail::negation<std::is_same<ValueType, std::any>>,
#endif
detail::is_detected_lazy<detail::get_template_function, const basic_json_t&, ValueType>
>::value, int >::type = 0 >