Use unique_ptr for MatchExpression sub-classes that store a child vector

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • Query Execution
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      ElemMatchValueMatchExpression and ListOfMatchExpression each store a vector of MatchExpression raw pointers that have to be cleaned up manually in their destructors. We'd like to replace these each with a vector of std::unique_ptr<MatchExpression> to formalize their ownership and improve our C++ hygiene.

            Assignee:
            [DO NOT USE] Backlog - Query Execution
            Reporter:
            Justin Seyster
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: