Using smart pointers for class members
I'm having trouble understanding the usage of smart pointers as class members in C++11. I have read a lot about smart pointers and I think I do understand how
unique_ptrandshared_ptr/weak_ptrwork in general. What I don't understand is the real usage. It seems like everybody recommends usingunique_ptras the way to go almost all the time. But how would I implement something like this: ...

Add a Comment
Comments are closed.