C++ namespace alias and forward declaration
- by Dave
I am using a C++ third party library that places all of its classes in a versioned namespace, let's call it tplib_v44. They also define a generic namespace alias:
namespace tplib = tplib_v44;
If a forward-declare a member of the library in my own .h file using the generic namespace...
namespace tplib { class SomeClassInTpLib; }
... I get…