create macro for reference functions to be used for disabling methods on a temporary

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.1.0
    • Component/s: Internal Code
    • None
    • Fully Compatible
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      NamespaceString::db() and NamespaceString::coll() can be called on a temporary NamespaceString, which will result in a StringData which points to invalid memory. One way to prevent this is by explicitly deleting the rvalue version of the function (see attached example.diff). The trouble is MSVC13 does not support reference functions. So we need to build a macro.

        1. example.diff
          3 kB
          Matt Dannenberg

              Assignee:
              DO NOT USE - Backlog - Platform Team
              Reporter:
              Matt Dannenberg (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: