Skip to content

json_pointer<>::back() should be const #1764

Closed
@gcerretani

Description

  • What is the issue you have?
    It is impossible su use json_pointer<>::back() on const json_pointer.

  • What is the expected behavior?
    I expect to be able to use on a const. Since it returns a const std::string&, and since it is implemented with std::vector<>::back() that has a const overload, I expect the json_pointer<>::back() has to be declared const.

  • And what is the actual behavior instead?
    The function is not marked as const.

  • Did you use a released version of the library or the version from the develop branch?
    tested with 3.7.0.

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions