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