Game Development Community

STL in 2009?

by Alain Labrie · in Torque Game Builder · 04/21/2009 (5:53 pm) · 7 replies

Since STL now works out-of-the-box in TGEA, are there any plans to include it in TGB in the near futur? I wrote some C++ code that I would like to incorporate in my game but it uses STL heavily.

#1
04/26/2009 (8:49 am)
I wouldn't think so, given the fact that GG is working on Torque 2D, which would be a different product then TGB. I don't think such a major undertaking will still be done with the TGB source. I could be wrong though.
#2
04/26/2009 (9:07 am)
I thought Torque 2D = T2D = TGB? I did not know GG was working on a new 2d engine. I guess it will be based on T3D?
#3
04/26/2009 (9:10 am)
When you say "STL", are you referring to the Standard Template Library? If so, why would you expect GG to include it in any of their products? It's called Standard for a reason - your compiler vendor should have already included it. Many of them even include TR1 headers.
#4
04/26/2009 (9:44 am)
@Sherman - He doesn't expect GG to include it in their product. He is asking if GG has any plans in making TGB compatible with STL because it's not.... at least not without making some minor changes.

@Alain - Take a look at this resource. In that resource we discuss how to make TGE play nicely with STL. I think the solution for TGB is exactly the same. If you still have problems with it, post here again and I'll take a closer look at it.

What version of TGB are you using?
#5
04/26/2009 (10:40 am)
STL works in TGEA because we removed the memory manager. Remove the memory manager from TGB and STL will work in it too.
#6
04/26/2009 (10:44 am)
Right... like this
#7
04/26/2009 (2:15 pm)
@Tony - Thanks but, I was trying to keep the memory manager intact since it might come in handy when I port to ITGB...

@Sherman - Tony is right, I was asking if GG was going to make TGB compatible with STL... The incompatibility stems from GG's redefinition of the "new" operator.

@Alex - I didn't know that GG had removed the memory manager from TGEA.