Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


madRenEGadE

Member Since 01 Feb 2006
Offline Last Active May 14 2014 01:41 PM

#4939078 Cleaning up a vector of pointers?

Posted by madRenEGadE on 10 May 2012 - 12:37 PM

If you want to avoid manual deletion of the pointers you could use a vector of smart pointers instead of raw pointers. C++11 offers you std::shared_ptr.


PARTNERS