12.07.2015 Views

dangling pointer

dangling pointer

dangling pointer

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Leaking Memory with Smart PointersTrue or false: If every occurrence of new in my program is in the constructor of aboost:shared_ptr, as inBoost::shared_ptr sp(new X);then my program cannot leak memory.There are two ways for memory leaks to occur.Big fat false

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!