Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Namespace pollution in C++

Name: Anonymous 2009-05-25 6:26

I'm working on a C++ project (needs to be fast, sorry,) and I don't want the headers to pollute the namespace with using directives. However, return types like boost::shared_ptr< std::list<File> > tempt me to do so, just so I can shorten my lines. I thought of putting the using directives within my namespace, but that still includes those names when others include my namespace. Maybe that isn't so bad, but I'd much prefer if my namespace only exported names belonging specifically to my namespace, and not those names used internally.

Name: Anonymous 2009-05-25 17:03

>>12
Or, in good old PHP style: shared_listPtr

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List