I’ve got something like this:
namespace n1
{
namespace n2
{
class foo{}
}
}
In other file I write:
using n1;
Why I can’t type now something like:
n2.foo smthing;
And how to make something like this possibile?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use namespace aliases:
What is before the class name should be a complete name space (with/or other class name(s) for nested types). A truncated namespace will not work.