utilForever / Cubby-v1

Voxel-based game client (based on AlwayGeeky's Vox)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve exception safety with smart pointers

elfring opened this issue · 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.