From 7ce92a637539395e3d130b3238d6f8f7a8a156e1 Mon Sep 17 00:00:00 2001 From: Florian Albrechtskirchinger Date: Sat, 23 Jul 2022 19:13:43 +0200 Subject: [PATCH] Deprecate json_pointer::operator string_t() --- include/nlohmann/detail/json_pointer.hpp | 1 + single_include/nlohmann/json.hpp | 1 + 2 files changed, 2 insertions(+) diff --git a/include/nlohmann/detail/json_pointer.hpp b/include/nlohmann/detail/json_pointer.hpp index 41d022994..79776bcc6 100644 --- a/include/nlohmann/detail/json_pointer.hpp +++ b/include/nlohmann/detail/json_pointer.hpp @@ -78,6 +78,7 @@ class json_pointer /// @brief return a string representation of the JSON pointer /// @sa https://json.nlohmann.me/api/json_pointer/operator_string/ + JSON_HEDLEY_DEPRECATED_FOR(3.11.0, to_string()) operator string_t() const { return to_string(); diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index b1efc7697..1d21f71b7 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -13526,6 +13526,7 @@ class json_pointer /// @brief return a string representation of the JSON pointer /// @sa https://json.nlohmann.me/api/json_pointer/operator_string/ + JSON_HEDLEY_DEPRECATED_FOR(3.11.0, to_string()) operator string_t() const { return to_string();