I have a large header file (~ 10,000 lines) that is automatically generated by the script / program from my control.
In order not to include this file in the declaration of my class, I forward the declaration to several types that I need:
- myclass.h
namespace bl { class TypeA; class TypeB; }
Now it turns out that TypeA and TypeB are not class names, but instead are defined inside an automatically generated file as:
typedef SomeUnspecifiedClassName TypeA; typedef AnotherUnspecifiedClassName TypeB;
Where by SomeUnspecifiedClassName I mean that I cannot forward-declare this type-name because it can change under different circumstances.
How can I send typedef declaration? (Unable to use C ++ 11)
source share