gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Vector problem in libnds

#131174 - kalus - Mon Jun 11, 2007 10:34 pm

Do vectors not work in libnds? It compiles ok, but as soon as i try and push_back an element it crahses. Is there something I'm missing?

#131233 - josath - Tue Jun 12, 2007 8:20 pm

did you forget to do new vector() or something? that would cause a crash if it were a null pointer

#131234 - sajiimori - Tue Jun 12, 2007 9:18 pm

Josath, unlike Java, C++ doesn't require objects to be allocated on the heap. They can be held by value.