Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


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