>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:

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

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

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

Shouldn't this be struct flobjs_ ?

Also, you are relying on nondocumented struct names. It may be
dangerous.

JMarc

Reply via email to