diff --git a/include/nlohmann/detail/meta/type_traits.hpp b/include/nlohmann/detail/meta/type_traits.hpp index 5106a14ba..e9bf81d08 100644 --- a/include/nlohmann/detail/meta/type_traits.hpp +++ b/include/nlohmann/detail/meta/type_traits.hpp @@ -450,18 +450,13 @@ decltype(ComparatorType()(std::declval(), std::declval -class iter_impl; - template struct is_usable_as_key_type { static constexpr bool value = is_key_type_comparable::value && !std::is_same::value && - !std::is_same::value && - // for Clang 3.5 - !std::is_same::type>>::value; + !std::is_same::value; }; } // namespace detail diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 05fa0e7af..9c67db16d 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -3847,18 +3847,13 @@ decltype(ComparatorType()(std::declval(), std::declval -class iter_impl; - template struct is_usable_as_key_type { static constexpr bool value = is_key_type_comparable::value && !std::is_same::value && - !std::is_same::value && - // for Clang 3.5 - !std::is_same::type>>::value; + !std::is_same::value; }; } // namespace detail