Pretty simple question. For example i have few namespaces in my project, for example, like this:
namespace A{
namespace B{
}
}
and a buch of code\classes\functions in this namespace.
Also i have namespace C where i want to use classes\functions from B like this:
namespace C{
AB::some_function()
}
To do this i want to make an alias to functions\classes inside B like this
namespace AB = A::B;
Q: Is a simple header file written like this
ab_typedefs.h
namespace A{
namespace B{
}
}
namespace AB = A::B;
is a good solution?
Aucun commentaire:
Enregistrer un commentaire