Topic: Using-redeclarations


Author: loewis@informatik.hu-berlin.de (Martin v. Loewis)
Date: 1998/03/18
Raw View
In section [namespace.decl]/7, it is explained that using declarations
can be repeated. Does this mean that the code below is correct?

namespace A{
  void f();
}

using A::f;

namespace A{
  void f(int);
}

using A::f;

If it is correct, would a following call

void g()
{
  f(42);
}

also be correct? If so, where is this specified?

TIA,
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              ]