New stdx namespace in server repository

XMLWordPrintableJSON

    • Fully Compatible
    • Server 2.7.2
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Matt Kangas (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: