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

compiler switch to disable the new and delete keywords #1

Open
janwilmans opened this issue Jul 8, 2018 · 0 comments
Open

compiler switch to disable the new and delete keywords #1

janwilmans opened this issue Jul 8, 2018 · 0 comments

Comments

@janwilmans
Copy link
Owner

of course you sometimes need new and delete, sometimes for manual memory management or when implementing libraries.

For all other cases std::make_unique should be the default and sometimes make_shared is ok if you know its going to be shared anyway.

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

1 participant