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_ptr
andshared_ptr/weak_ptr
work in general. What I don't understand is the real usage. It seems like everybody recommends usingunique_ptr
as the way to go almost all the time. But how would I implement something like this: ...
Add a Comment
Comments are closed.