Topic: [Q]: Add "using namespace;" to avoid name scope clashes between for
Author: Martin Fabian <fabianNOSPAM@s2.chalmers.se>
Date: 22 Oct 2001 14:53:47 -0400 Raw View
Francis ANDRE wrote:
>
<snip>
> By inserting a reset command like -- using namespace; -- of the used
> namespace before the including of <strstream.h>,
> one can avoid this kind of problem.
>
No, one avoids this type of problem by _not_ having "using namespace
xxx;" at conflicting (in this case, global) scope.
--
Martin Fabian http://www.s2.chalmers.se/~fabian/
--
Ask enough experts. Eventually you'll get the answer you want.
/* Remove NOSPAM from reply-to address to mail me */
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html ]