Skip to content

Commit

Permalink
stop marking equal operators as deprecated nlohmann#4621
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem-OSSRevival committed Feb 18, 2025
1 parent 0b6881a commit 1d81fba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions include/nlohmann/detail/json_pointer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,8 @@ inline bool operator==(const json_pointer<RefStringTypeLhs>& lhs,

template<typename RefStringTypeLhs,
typename StringType = typename json_pointer<RefStringTypeLhs>::string_t>
JSON_HEDLEY_DEPRECATED_FOR(3.11.2, operator==(json_pointer, json_pointer))
// generic function, should not be deprecated until the dependent ones are rewritten
// JSON_HEDLEY_DEPRECATED_FOR(3.11.2, operator==(json_pointer, json_pointer))
inline bool operator==(const json_pointer<RefStringTypeLhs>& lhs,
const StringType& rhs)
{
Expand All @@ -945,7 +946,8 @@ inline bool operator==(const json_pointer<RefStringTypeLhs>& lhs,

template<typename RefStringTypeRhs,
typename StringType = typename json_pointer<RefStringTypeRhs>::string_t>
JSON_HEDLEY_DEPRECATED_FOR(3.11.2, operator==(json_pointer, json_pointer))
// generic function, should not be deprecated until the dependent ones are rewritten
// JSON_HEDLEY_DEPRECATED_FOR(3.11.2, operator==(json_pointer, json_pointer))
inline bool operator==(const StringType& lhs,
const json_pointer<RefStringTypeRhs>& rhs)
{
Expand Down
6 changes: 4 additions & 2 deletions single_include/nlohmann/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15425,7 +15425,8 @@ inline bool operator==(const json_pointer<RefStringTypeLhs>& lhs,

template<typename RefStringTypeLhs,
typename StringType = typename json_pointer<RefStringTypeLhs>::string_t>
JSON_HEDLEY_DEPRECATED_FOR(3.11.2, operator==(json_pointer, json_pointer))
// generic function, should not be deprecated until the dependent ones are rewritten
// JSON_HEDLEY_DEPRECATED_FOR(3.11.2, operator==(json_pointer, json_pointer))
inline bool operator==(const json_pointer<RefStringTypeLhs>& lhs,
const StringType& rhs)
{
Expand All @@ -15434,7 +15435,8 @@ inline bool operator==(const json_pointer<RefStringTypeLhs>& lhs,

template<typename RefStringTypeRhs,
typename StringType = typename json_pointer<RefStringTypeRhs>::string_t>
JSON_HEDLEY_DEPRECATED_FOR(3.11.2, operator==(json_pointer, json_pointer))
// generic function, should not be deprecated until the dependent ones are rewritten
// JSON_HEDLEY_DEPRECATED_FOR(3.11.2, operator==(json_pointer, json_pointer))
inline bool operator==(const StringType& lhs,
const json_pointer<RefStringTypeRhs>& rhs)
{
Expand Down

0 comments on commit 1d81fba

Please sign in to comment.