Rename private json_pointer::is_root as public json_pointer::empty for consistency with std::filesystem::path
This commit is contained in:
parent
5da757bbb3
commit
164e0e54d9
3 changed files with 10 additions and 10 deletions
|
|
@ -7466,7 +7466,7 @@ class basic_json
|
|||
const auto operation_add = [&result](json_pointer & ptr, basic_json val)
|
||||
{
|
||||
// adding to the root of the target document means replacing it
|
||||
if (ptr.is_root())
|
||||
if (ptr.empty())
|
||||
{
|
||||
result = val;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue