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

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

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 3.1.0
    • Internal Code
    • None
    • Fully Compatible

    Description

      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.

      Attachments

        Activity

          People

            backlog-server-platform DO NOT USE - Backlog - Platform Team
            matt.dannenberg Matt Dannenberg
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: