Improve exception safety with smart pointers
elfring opened this issue · comments
Markus Elfring commented
Would you like to wrap any pointer data members with the template class "std::unique_ptr"?
Update candidates:
Chris Ohk commented
Thanks. I'll take refactoring after check it is safe and efficient.
Chris Ohk commented
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.