From b20332ddb98227e2c4dc2fe7b22350cc9fc8f84d Mon Sep 17 00:00:00 2001 From: Fredrik Sandhei Date: Thu, 29 Feb 2024 22:52:18 +0100 Subject: [PATCH] Use bool instead of auto --- include/nlohmann/detail/meta/type_traits.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/nlohmann/detail/meta/type_traits.hpp b/include/nlohmann/detail/meta/type_traits.hpp index 8747a85e3..f017febf1 100644 --- a/include/nlohmann/detail/meta/type_traits.hpp +++ b/include/nlohmann/detail/meta/type_traits.hpp @@ -684,10 +684,11 @@ inline constexpr bool value_in_range_of(T val) template using bool_constant = std::integral_constant; + template > struct json_compatible_type { - static constexpr auto value = !is_basic_json::value && is_compatible_type::value; + static constexpr bool value = !is_basic_json::value && is_compatible_type::value; }; ///////////////////////////////////////////////////////////////////////////////