I can't use std::vector of auto_ptr - should i use shared_ptr?

Posted by eriks on Stack Overflow See other posts from Stack Overflow or by eriks
Published on 2010-03-15T10:56:55Z Indexed on 2010/03/15 10:59 UTC
Read the original article Hit count: 266

Filed under:
|

I don't really need to share the objects, but i do want to make sure no memory leakage occurs. Is it correct to use shared_ptr in this case?

© Stack Overflow or respective owner

Related posts about c++

Related posts about shared-ptr