> I believe it's possible to use a "safe" subset of C++ such that no > libraries are required. If you avoid exceptions, RTTI, the C++ standard > library functions, and new/delete, you should be able to avoid depending > on the library in most toolchains, and in some cases you may be able to > use some of these features (e.g. you can overload the new and delete > operators to avoid depending on the library versions, but then you have > to do some linker jiggery-pokery to avoid symbol clashes). The other > problem is that you then have to work out the magic incantations for > each compiler/linker to avoid it linking in libstdc++ or equivalent > anyway. > > Bruce
WRT new and delete most compilers provide a nothrow_t version which will not throw any exceptions but return NULL on failure similar to malloc. Jeremy ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Mesa3d-dev mailing list Mesa3d-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mesa3d-dev