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>
|
// std::is_scalar<ScalarType>::value, int>::type = 0>
|
||||||
/// @brief comparison: equal
|
/// @brief comparison: equal
|
||||||
/// @sa https://json.nlohmann.me/api/basic_json/operator_eq/
|
/// @sa https://json.nlohmann.me/api/basic_json/operator_eq/
|
||||||
template <typename T,
|
template <typename T>
|
||||||
std::enable_if<detail::json_compatible_type<T, basic_json_t>::value, int>::type = 0>
|
requires detail::json_compatible_type<T, basic_json_t>::value
|
||||||
bool operator==(T rhs) const noexcept
|
bool operator==(T rhs) const noexcept
|
||||||
{
|
{
|
||||||
return *this == basic_json(rhs);
|
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>
|
// std::is_scalar<ScalarType>::value, int>::type = 0>
|
||||||
/// @brief comparison: equal
|
/// @brief comparison: equal
|
||||||
/// @sa https://json.nlohmann.me/api/basic_json/operator_eq/
|
/// @sa https://json.nlohmann.me/api/basic_json/operator_eq/
|
||||||
template <typename T,
|
template <typename T>
|
||||||
std::enable_if<detail::json_compatible_type<T, basic_json_t>::value, int>::type = 0>
|
requires detail::json_compatible_type<T, basic_json_t>::value
|
||||||
bool operator==(T rhs) const noexcept
|
bool operator==(T rhs) const noexcept
|
||||||
{
|
{
|
||||||
return *this == basic_json(rhs);
|
return *this == basic_json(rhs);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user