From 5f39b09cbc96983ae98e8e03379d61143f09a5db Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Fri, 23 Jul 2021 10:05:22 +0200 Subject: [PATCH] :rewind: undo experimental fix for Clang 3.5 --- include/nlohmann/detail/meta/type_traits.hpp | 7 +------ single_include/nlohmann/json.hpp | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) 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