Opened 6 years ago

Closed 3 years ago

Last modified 3 years ago

#915 closed task (fixed)

Propose dropping ‘using namespace std‘

Reported by: goatbar Owned by: goatbar
Priority: minor Milestone: 3.10.0
Component: Default Version: main
Severity: Unassigned Keywords:
Cc:

Description

Pulling in whole namespaces is now generally considered bad form. It pollutes the compilation unit and it is hard for the reader to know what to expect.

Are folks okay if I work through removing them?

https://stackoverflow.com/questions/1452721/why-is-using-namespace-std-considered-bad-practice

Change History (5)

comment:1 by cvvergara, 6 years ago

I agree in what your mentioning, In fact, in the files I am working on, I am changing the:

using namespace a::b::c;

to the set of classes used on the namespace

using a::b::c::Class1;

comment:2 by pramsey, 3 years ago

Milestone: 3.10.0

comment:3 by Paul Ramsey <pramsey@…>, 3 years ago

In d271aaa/git:

Remove use of 'using namespace std'. References #915

comment:4 by pramsey, 3 years ago

Resolution: fixed
Status: assignedclosed

comment:5 by goatbar, 3 years ago

Thank you!

Note: See TracTickets for help on using tickets.