no namespace-level using statements

10 views
Skip to first unread message

Bob Carpenter

unread,
Dec 1, 2015, 5:39:06 PM12/1/15
to stan...@googlegroups.com
Please don't include namespace-level includes.

The problem is that then you can't control locally what
gets included, which can lead to name-resolution conflicts,
and it also introduces order dependencies on the files.

See: http://stackoverflow.com/questions/6175705/scope-of-using-declaration-within-a-namespace

or go straight to Herb Sutter's advice:

http://www.gotw.ca/gotw/053.htm

That site's awesome, by the way, if you want to study C++ :-)

- Bob
Reply all
Reply to author
Forward
0 new messages