Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve exception safety with smart pointers #109

Open
elfring opened this issue Dec 12, 2022 · 2 comments
Open

Improve exception safety with smart pointers #109

elfring opened this issue Dec 12, 2022 · 2 comments

Comments

@elfring
Copy link

elfring commented Dec 12, 2022

Would you like to wrap any pointers with the class template “std::unique_ptr”?

Update candidates:

@cryham
Copy link
Member

cryham commented Feb 27, 2023

Maybe, IDK
If it isn't leaking then I don't see the point.
Plenty of Ogre classes use * pointers anyway, even in SR3

@elfring
Copy link
Author

elfring commented Feb 27, 2023

💭 Would you like to take the C++ guideline “R.11: Avoid calling new and delete explicitly” better into account?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants