Add compiler lifetime bounds to FieldPath/FieldRef/DatabaseName/NamespaceString

XMLWordPrintableJSON

    • Query Execution
    • Fully Compatible
    • QE 2025-10-27
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Classes FieldPath, FieldRef, DatabaseName and NamespaceString own string values, for which they can hand out non-owning StringData views. Methods in these classes that return these unowned views should be annotated with MONGO_COMPILER_LIFETIME_BOUND to ensure that the unowned values cannot be used when the owning objects go out of scope.

            Assignee:
            Jan Steemann
            Reporter:
            Jan Steemann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: