I am confused what to do when having nested namespaces and declaration of objects.
I am porting some code that links against a static library that has a few name spaces.
Example of what I am talking about:
namespace ABC {
namespace XYZ {
//STUFF
}
}
In code what so I do to declare an object that is in namespace XYZ?
if I try:
XYZ::ClassA myobject;
or:
ABC::XYZ::ClassA myobject;
or:
ABC::ClassA myobject;
I get does not name a type errors, even though ClassA definitely exists.
What is proper here?