Re: [Opentnl-general] TNL and STL
Brought to you by:
mark_frohnmayer,
s_alanet
From: Mark F. <ma...@ga...> - 2004-05-04 05:26:29
|
Jean-Francois Lévesque wrote: >Hello guys, > >I'd like to use TNL in my game. But I noticed that as soon as I include a >STL header to one of my file nothing compiles. >There's a line in tnlType.h which mess with the new operator that seems to cause the trouble. > >I'd like to know if there's a way to use the STL header files at the same time than TNL because the scenegraph of my game uses STL alot. > It should work to just replace the overloaded operator new in tnlTypes.h with an include of the STL new - like so: //inline void* operator new(size_t size, void* ptr) { return ptr; } #include <new> |