quote:Original post by Enokh
I thought that if you have a vector in a class which is in static memory (ex: int x) then when that variable exists the scope the vector inside it will completely erase itself as well automatically. Don''t even need a deconstructor... Am I wrong here?
Do you mean that if you have a vector inside an object, and the object goes out of scope (destructs) then the vector will erase itself? If that''s what you meant, then yes.. the vector erases itself in its destructor.
daveandrews.org - a Christian Programmer''s Weblog | Dusty Engine - a task engine using Irrlicht | Computer Guys Run the World
How to be a Programmer