[SERVER-29484] Audit in-header namespace level using statements for correctness and non-pollution Created: 06/Jun/17  Updated: 30/Oct/23  Resolved: 14/Feb/18

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 3.7.3

Type: Bug Priority: Major - P3
Reporter: ADAM Martin (Inactive) Assignee: ADAM Martin (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Platforms 2018-02-26
Participants:

 Description   

We have numerous in-header using statements:

% grep -r '^using .*;' src/mongo/ | grep '\.h:'|wc -l
138

Some are basic typedefs. Some improperly import external namespace objects into mongo.

Filtering for `stdx` which needs to do this, there are just under 100 potential violations:

% grep -r '^using .;' src/mongo/ | grep '\.h:' | grep -v 'mongo/stdx/.\.h:' | less|wc -l
98



 Comments   
Comment by Githook User [ 14/Feb/18 ]

Author:

{'email': 'adam.martin@10gen.com', 'name': 'ADAM David Alan Martin', 'username': 'adamlsd'}

Message: SERVER-29484 Remove `using std::` forms in headers.

There are some `using std::` using statements in headers that are
at namespace scope. These cause unnecessary namespace pollution;
thus they need to be removed.
Branch: master
https://github.com/mongodb/mongo/commit/166183f97a8648c44f5b04dfa8f0716ca63f076b

Generated at Thu Feb 08 04:21:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.