Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1068

Make bsoncxx iterators always const_iterators

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.3
    • Affects Version/s: None
    • Component/s: API
    • Labels:
    • Minor Change

      This is a tracking ticket for https://github.com/mongodb/mongo-cxx-driver/pull/555 :

      STL-style containers return const_iterator using methods begin/end for const objects, but your implementation returns non const iterators for const objects.

      After consideration, instead of adopting the pull request, we decided to make all iterator const_iterators and to alias the iterator types to their corresponding const_iterator type.

            Assignee:
            david.golden@mongodb.com David Golden
            Reporter:
            david.golden@mongodb.com David Golden
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: