Whilst playing around with my C++ wrappers for xforms, I discovered that I 
could remove #include FORMS_H_LOCATION from the header files if I forward 
declare FL_OBJECT and FL_FORM so:

// Can't forward declare the typedef, but this works fine
class flobjs_;
typedef flobjs_ FL_OBJECT;
class forms_;
typedef forms_ FL_FORM;

Is there a better way or have I done the Right Thing?

Angus

Reply via email to