utilForever/Cubby-v1

Improve exception safety with smart pointers

elfring opened this issue · 2 comments

Would you like to wrap any pointer data members with the template class "std::unique_ptr"?

Update candidates:

Thanks. I'll take refactoring after check it is safe and efficient.

I think that your "update candidates" are suitable for "std::shared_ptr" (pRenderer is used for many classes). However, I don't know how efficient it is. Let's end here for now. If you provide another issue about smart pointers, we will discuss it.