Forward-declare a typedef
问题 I have got a large header file (~10000 lines) which is auto-generated by a script/program out of my control. In order to avoid to include this file in the declaration of my class, I forward declare the few types I need: --myclass.h namespace bl { class TypeA; class TypeB; } // Other stuff and myclass definition... Now it turns out that TypeA and TypeB are not class-names, but are instead defined inside the auto-generated file as: typedef SomeUnspecifiedClassName TypeA; typedef