Fix compile errors on other versions of clang
This commit is contained in:
parent
7fe8daded8
commit
65b9b38ff3
@ -3696,8 +3696,8 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
|
||||
// std::is_scalar<ScalarType>::value, int>::type = 0>
|
||||
/// @brief comparison: equal
|
||||
/// @sa https://json.nlohmann.me/api/basic_json/operator_eq/
|
||||
template <typename T,
|
||||
std::enable_if<detail::json_compatible_type<T, basic_json_t>::value, int>::type = 0>
|
||||
template <typename T>
|
||||
requires detail::json_compatible_type<T, basic_json_t>::value
|
||||
bool operator==(T rhs) const noexcept
|
||||
{
|
||||
return *this == basic_json(rhs);
|
||||
|
||||
@ -22917,8 +22917,8 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
|
||||
// std::is_scalar<ScalarType>::value, int>::type = 0>
|
||||
/// @brief comparison: equal
|
||||
/// @sa https://json.nlohmann.me/api/basic_json/operator_eq/
|
||||
template <typename T,
|
||||
std::enable_if<detail::json_compatible_type<T, basic_json_t>::value, int>::type = 0>
|
||||
template <typename T>
|
||||
requires detail::json_compatible_type<T, basic_json_t>::value
|
||||
bool operator==(T rhs) const noexcept
|
||||
{
|
||||
return *this == basic_json(rhs);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user