Torque network lib and STL
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
And both TNL and the STL ought to be happy (if they''re both standards compliant).
#include <new>
And both TNL and the STL ought to be happy (if they''re both standards compliant).
enum Bool { True, False, FileNotFound };
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.
--- Official D Blog | Learning D | The One With D | D Bits
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement