Tag Archives: shared_ptr

Shared pointers, and why you should use them

NOTE: The ideas expressed below are in part based on the book Effective C++ by Scott Myers. He uses auto_ptr in his example, but essentially the lesson is the same. Let’s face it: pointers are dangerous. If you allocate something, … Continue reading

Posted in Code | Tagged , , | Leave a comment