Define NamespaceString and DatabaseName operators in-class

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Service Arch 2023-02-20
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      This takes the functions out of the enclosing namespace.

      This idiomatic pattern reduces risk of ambiguity, and makes all uses of these operators in namespace mongo slightly easier to compile.

      Implement the relational operators as operators on std::tie tuples of the data members, so there's less overall work to do in the comparisons, and the body of each one becomes an obvious 1-liner.

            Assignee:
            Billy Donahue
            Reporter:
            Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: