Topic: About "using" and scope
Author: Anne & Larry Brunelle <brunelle@acm.org>
Date: Sun, 8 Jul 2001 23:07:50 GMT Raw View
How is it that a
using
directive, viz.
using namespace std;
doesn't work in the scope of a class but
does in the scope of a function?
I see that 7.3.4 on p. 120 of the Standard does say
this is so, but I do not know why. Neither did
Scott Meyers, who nonetheless was kind enough to
answer my query.
Now we'd both like to know.
Larry Brunelle
brunelle@acm.org
---
[ 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 ]