3 ms·
You just described std::shared_ptr and std::weak_ptr. I recommend doing some more reading on the subject.
by RotsiserMho 11y ago
You just described std::shared_ptr and std::weak_ptr. I recommend doing some more reading on the subject.
- seivan 11y agoThanks, I will! But it doesn't change what Blow said, and what I agreed with. It becomes ugly and takes more space than I need to. My class becomes weak_ptr and what I want to use becomes the template. You should also look into his talk about c++ and its weaknesses.