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

Report most-vexing parse warnings as errors on MSVC

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 3.0.1
    • 3.0.5, 3.1.0
    • Build
    • None
    • Fully Compatible

    Description

      The version of the most-vexing parse where the developer inadvertently declares a function instead of defining a variable can cause lock acquisitions to be missed, and other RAII behavior to not occur. MSVC has a warning about these, which we should report as build errors.

      Attachments

        Activity

          People

            schwerin@mongodb.com Andy Schwerin
            schwerin@mongodb.com Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: