[SERVER-39863] remove global "using namespace std" directives Created: 27/Feb/19  Updated: 29/Oct/23  Resolved: 28/Feb/19

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

Type: Improvement Priority: Trivial - P5
Reporter: Billy Donahue Assignee: Billy Donahue
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Sprint: Dev Tools 2019-03-11
Participants:
Linked BF Score: 78

 Description   

We have a linter that complains about new "using namespace" instances.

using namespace std; 

These can create conflicts or unintended lookup results between std:: and our code's names.

They are also a bad precedent to leave in our codebase as style examples.

We can just get rid of them with some quick win regex work.



 Comments   
Comment by Githook User [ 28/Feb/19 ]

Author:

{'name': 'Billy Donahue', 'email': 'billy.donahue@mongodb.com', 'username': 'BillyDonahue'}

Message: SERVER-39863 fix macos,freebsd
Branch: master
https://github.com/mongodb/mongo/commit/b2c7cce6ccdfd0ad54e47fb3ff31c8810fd5f6b7

Comment by Billy Donahue [ 28/Feb/19 ]

fix macos and freebsd builds

https://mongodbcr.appspot.com/236820002/

Comment by Githook User [ 28/Feb/19 ]

Author:

{'name': 'Billy Donahue', 'username': 'BillyDonahue', 'email': 'billy.donahue@mongodb.com'}

Message: SERVER-39863 remove std using namespace directives
Branch: master
https://github.com/mongodb/mongo/commit/812890b7952f65241c4ae9076d698cbcc9cd5bbd

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