Is the following program well-formed according to the c++ standard?
namespace X { class A; } namespace Y { using X::A; class A {}; } int main() {} <
namespace X { class A; } namespace Y { using X::A; class A {}; } int main() {}
Not too sure but you can try something like this :
namespace X { class A; } namespace Y { class X::A {}; } int main() { return 0; }