[CVS HEAD] Problem with incomplete type in src/common/hash.cpp

Wlodek Szafran wlodek.szafran at hwcn.org
Tue May 1 21:21:29 PDT 2007


Hello,

as pointed out by GCC, currently there's a problem with deletion of an 
object with incomplete type in src/common/hash.cpp, line 351:

     delete ((wxHashTable_Node*)node)->GetData();

The compiler needs the full definition of class wxObject (GetData 
returns wxObject*) here, and only the forward declaration from hash.h is 
available.  The inclusion of wx/object.h in hash.cpp fixes it.

Best regards.

-- 
Wlodek Szafran




More information about the wx-dev mailing list