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

New stdx namespace in server repository

    • Fully Compatible
    • Server 2.7.2

      Add a new source directory src/mongo/stdx and namespace "mongo::stdx::" in the server codebase to provide symbol indirection for boost/std symbols.

      Motivation: When you switch from a C++03 compiler to C++11, a number of things you formerly wanted to use from boost:: are now provided by std::.

      We should not sprinkle #ifdefs at call sites to deal with this. Instead, create a new namespace "mongo::stdx" (stdx = "std extended") and encapsulate #ifdefs there.

      This was motivated by SERVER-13256 ("Remove pch.h")

            Assignee:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Reporter:
            matt.kangas Matt Kangas
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: