Leonard Rosenthol on Sun, 16 Feb 2003 22:10:35 -0500


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] C++ and namespaces


At 6:28 PM -0500 2/14/03, Jeff Abrahamson wrote:
I'm using g++ 3.x now, and I'm curious what advice might be given on incanting

    using namespace std;

in .h files, in .cc/.cpp files, or being (absurdly) verbose and saying
std:: all over. Is there a good reason not to just put this in most .h
files, for example, and be done with it?


I try to be explicit in all my namespace specifications - esp. std. So I (almost) never use namespace and always completely qualify. Code is a bit more verbose, but I never have to worry about conficts.



LDR -- --------------------------------------------------------------------------- Leonard Rosenthol <mailto:leonardr@lazerware.com> <http://www.lazerware.com> _________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce General Discussion -- http://lists.netisland.net/mailman/listinfo/plug