Topic: using types


Author: loewis@informatik.hu-berlin.de (Martin v. Loewis)
Date: 1998/03/18
Raw View
Can anybody tell me the relationship of using declarations and type
shadowing? I.e. is the program below correct?

namespace A{
  void X();
  struct X{};
}

using A::X;
struct X x;

Any comment appreciated.

Regards,
Martin


[ 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://reality.sgi.com/austern_mti/std-c++/faq.html              ]