c++ issuesthe following documents some miscellaneous c++ issues.
templates
templateswxwidgets does not use templates (except for some advanced features that are switched off by default) since it is a notoriously unportable feature.
rttiwxwidgets does not use c++ run-time type information since wxwidgets provides its own run-time type information system, implemented using macros.
type of nullsome compilers (e.g. the native irix cc) define null to be 0l so that no conversion to pointers is allowed. because of that, all these occurrences of null in the gtk+ port use an explicit conversion such as
precompiled headerssome compilers, such as borland c++ and microsoft c++, support precompiled headers. this can save a great deal of compiling time. the recommended approach is to precompile "wx.h", using this precompiled header for compiling both wxwidgets itself and any wxwidgets applications. for windows compilers, two dummy source files are provided (one for normal applications and one for creating dlls) to allow initial creation of the precompiled header. however, there are several downsides to using precompiled headers. one is that to take advantage of the facility, you often need to include more header files than would normally be the case. this means that changing a header file will cause more recompilations (in the case of wxwidgets, everything needs to be recompiled since everything includes "wx.h"!) a related problem is that for compilers that don't have precompiled headers, including a lot of header files slows down compilation considerably. for this reason, you will find (in the common x and windows parts of the library) conditional compilation that under unix, includes a minimal set of headers; and when using visual c++, includes wx.h. this should help provide the optimal compilation for each compiler, although it is biased towards the precompiled headers facility available in microsoft c++.
|