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

Define NamespaceString and DatabaseName operators in-class

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • Service Arch 2023-02-20

    Description

      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.

      Attachments

        Activity

          People

            billy.donahue@mongodb.com Billy Donahue
            billy.donahue@mongodb.com Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: