GridFS and GridFile acessor member functions should be made 'const'.

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Minor - P4
    • 2.1.0
    • Affects Version/s: 2.0.0-rc2
    • Component/s: Internal Client
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      All GridFS/GridFile accessors, like list(), getFilename(), exists(), etc. are currently non-const, which is both illogical and inconvenient (e.g. prevents from passing by const reference even if only nonmutating operations required).

      The attached patche resolves this small issue.

        1. gridfs-const-accessors.patch
          6 kB
          Yakov Markovitch

            Assignee:
            Mathias Stearn
            Reporter:
            Yakov Markovitch
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: