Every namespace declaration is either original-namespace-definition (if the name hasn't been seen yet) or an extension-namespace-definition (if the name was already defined).
You could use an empty definition that you extend later
1 2 3 4 5
namespace X {} // original-namespace-definition, with no members
// ...
namespace X { // extension-namespace definition, with members
namespace-member-declaration;
}
but it doesn't make the names declared in the extension visible to the code that can see the original definition.
yah i know about your code, my question was if its allowed for me to declare an namespace and then the program to search automatically for the definition like in functions.. but i guess there is no such a option in namespaces...