Skip to content

Commit

Permalink
Use bool instead of auto
Browse files Browse the repository at this point in the history
  • Loading branch information
fsandhei committed Feb 29, 2024
1 parent 0c9adb1 commit b20332d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/nlohmann/detail/meta/type_traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -684,10 +684,11 @@ inline constexpr bool value_in_range_of(T val)
template<bool Value>
using bool_constant = std::integral_constant<bool, Value>;


template <typename T, typename BasicJsonType, typename U = uncvref_t<T>>
struct json_compatible_type
{
static constexpr auto value = !is_basic_json<U>::value && is_compatible_type<BasicJsonType, U>::value;
static constexpr bool value = !is_basic_json<U>::value && is_compatible_type<BasicJsonType, U>::value;

Check notice on line 691 in include/nlohmann/detail/meta/type_traits.hpp

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

include/nlohmann/detail/meta/type_traits.hpp#L691

struct member 'json_compatible_type::value' is never used.
};

///////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit b20332d

Please sign in to comment.