Let’s say that you’re on a system where you cant use TR1, boost, etc. You just have the straight-up standard library C++.
If you were stuck with this scenario, what’s the simplest reference-counting smart-pointer you could use? (our system only has auto_ptr which is not overly useful).
I’m happy with a link to something somewhat well-established or a simple “it’s too complicated to implement yourself” if that’s the answer (which I’m half expecting 🙁 ).
Well some time ago I just made one for studding interest. It’s not so “smart” but anyway better then raw pointer.
And yeah it’s just demo..