BSONObj::objsize() should return a size_t

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The BSONObj::objsize() function returns a countable value and the data type size_t would be preferable to int. This is also necessary to avoid annoying explicit casts when the return value is compared to size_t objects.

      On the other hand, the BSONElement:: objsize() function already returns size_t values.

            Assignee:
            Unassigned
            Reporter:
            Antonio Fuschetto
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: