[SERVER-13882] New stdx namespace in server repository Created: 08/May/14  Updated: 04/Sep/14  Resolved: 20/May/14

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 2.7.1

Type: Task Priority: Major - P3
Reporter: Matt Kangas Assignee: Mark Benvenuto
Resolution: Done Votes: 0
Labels: community-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-13874 Improve handling of dates, times, and... Closed
Backwards Compatibility: Fully Compatible
Sprint: Server 2.7.2
Participants:

 Description   

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")



 Comments   
Comment by Matt Kangas [ 20/May/14 ]

I think we can call this done, right? Other C++11 compatibility stubs will be added in other tickets. Thanks schwerin.

Comment by Githook User [ 16/May/14 ]

Author:

{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@mongodb.com'}

Message: SERVER-13882 Replace boost::function with stdx::function and boost::bind with stdx::bind.
Branch: master
https://github.com/mongodb/mongo/commit/995c04a16090511692c67a3555bdb61b5a387fa1

Comment by Githook User [ 16/May/14 ]

Author:

{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@mongodb.com'}

Message: SERVER-13882 Introduce mongo::stdx namespace, use it for bind and function.
Branch: master
https://github.com/mongodb/mongo/commit/864d86ad02e3de2149b4f80949d66a03cff061d1

Generated at Thu Feb 08 03:33:11 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.