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

[CQF] Strong alias for ProjectionNames and FieldNames

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • QO 2022-10-31, QO 2022-11-14

    Description

      Currently both projection names and variable names are aliases for std::string. This work introduces a strong string alias which achieves the following:

       

      1. Encapsulates the string value.
      2. Prevent construction, assignment and comparison of different aliases (e.g. we cannot assign a projection to a field name).
      3. Controls initialization from strings.
      4. Optionally disallows empty strings.

      Attachments

        Activity

          People

            svilen.mihaylov@mongodb.com Svilen Mihaylov (Inactive)
            svilen.mihaylov@mongodb.com Svilen Mihaylov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: