Is it possible to access the type Foo under the namespace first by using a using declaration (or something similar) in the caller code?
namespace first {
namespace second {
struct Foo { int i; };
}
}
int main() {
using namespace first::second;
first::Foo foo { 123 };
return 0;
}
I get these error messages:
error: 'Foo' is not a member of 'first'
first::Foo foo{ 123 };```
Foounder namespacefirst.