Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-17596

mongo::OID::asTimeT() and mongo::OID::asDateT() should be const

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 3.1.1
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • Fully Compatible
    • Platform 1 04/03/15

      As mongo::OID::asDateT() calls mongo::OID::asTimeT(), which calls OID::getTimestamp(), which is a const member function, mongo::OID::asDateT() and mongo::OID::asTimeT() should also be marked as const.

            Assignee:
            adam.midvidy Adam Midvidy
            Reporter:
            mapx Peng Xie
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: