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

Modern C++ (pointers) #7

Open
hubernikus opened this issue Oct 20, 2021 · 1 comment
Open

Modern C++ (pointers) #7

hubernikus opened this issue Oct 20, 2021 · 1 comment

Comments

@hubernikus
Copy link

What are your thoughts about modern (smart) pointer styles? Should we use this for recommendations in the style guide?
https://docs.microsoft.com/en-us/cpp/cpp/smart-pointers-modern-cpp?view=msvc-160

@niederha
Copy link
Contributor

niederha commented Jan 10, 2023

Ahaha I just saw this. In my opinion shared pointers and unique pointers are now part of standard modern c++. They should be used mindfully (it is not an excuse to stop managing your memory) but it is a very useful tool to make your program safer and cuts a lot of boilerplate. This is an extremely good tool for mutli-threading for example.

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