Skip to content

Commit

Permalink
Merge pull request #481 from amassalha/jsoncons_const_itr
Browse files Browse the repository at this point in the history
make cbegin and cend functions const
  • Loading branch information
danielaparker authored Jan 24, 2024
2 parents 0ba5111 + 0e0341d commit 365a259
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/jsoncons/basic_json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,11 +354,11 @@ namespace jsoncons {
{
return last_;
}
const_iterator cbegin()
const_iterator cbegin() const noexcept
{
return first_;
}
const_iterator cend()
const_iterator cend() const noexcept
{
return last_;
}
Expand All @@ -370,11 +370,11 @@ namespace jsoncons {
{
return reverse_iterator(first_);
}
const_reverse_iterator crbegin()
const_reverse_iterator crbegin() const noexcept
{
return reverse_iterator(last_);
}
const_reverse_iterator crend()
const_reverse_iterator crend() const noexcept
{
return reverse_iterator(first_);
}
Expand Down

0 comments on commit 365a259

Please sign in to comment.