Deprecate json_pointer::operator string_t()

This commit is contained in:
Florian Albrechtskirchinger 2022-07-23 19:13:43 +02:00
parent e5f3eb2d7d
commit 7ce92a6375
No known key found for this signature in database
GPG Key ID: 19618CE9B2D4BE6D
2 changed files with 2 additions and 0 deletions

View File

@ -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();

View File

@ -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();