Advertisement

Torque network lib and STL

Started by May 03, 2004 08:57 PM
2 comments, last by Anilid 20 years, 9 months ago
Hello guys, My question is simple, does anyone succesfully used the TNL lib with any header of the STL? There''s a line in tnlTypes.h which goes by: inline void* operator new(size_t size, void* ptr) { return ptr; } That mess with evey header of STL. If you comment out that line, the TNL library doesn''t compile anymore of course. so what would be the solution? Because I''d like to use TNL with a scenegraph which use STL alot. Thanks Jeff
That looks like placement new. Replace that line with

#include <new> 


And both TNL and the STL ought to be happy (if they''re both standards compliant).
enum Bool { True, False, FileNotFound };
Advertisement
Be forwarned - the GG guys are not fans of STL. There were some requests before to make the Torque engine able to support, or at least coexist with, the STL. They refuse to even ensure compatibility.
TNL is not Torque. The solution described below should make TNL behave happily with STL, and was checked in to the TNL CVS a few days ago. The next source release will have the fix.

This topic is closed to new replies.

Advertisement