enum class BSONType

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability
    • Fully Compatible
    • Programmability 2025-06-09
    • 200
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None
    • 0

      The members of enum mongo::BSONType are taking up a lot of namespace, unnecessarily. The words `mongo::String`, `mongo::Bool`, `mongo::Undefined`, `mongo::Date` etc are all just members of this enum. Making it an `enum class` would force scoped naming and avoid the namespace land grab.

            Assignee:
            Billy Donahue
            Reporter:
            Billy Donahue
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: