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

Use make_unique instead of reset #759

Merged
merged 1 commit into from
Oct 26, 2022
Merged

Conversation

AZero13
Copy link
Contributor

@AZero13 AZero13 commented Oct 21, 2022

This is a more efficient approach

@BillyONeal
Copy link
Member

It is not more efficient; unlike make_shared there's no efficiency to be gained by involving the library in construction. However, it is nice. I think we avoided before because it's a C++17 feature.

Thanks!

@BillyONeal BillyONeal merged commit b0811e6 into microsoft:main Oct 26, 2022
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

Successfully merging this pull request may close these issues.

2 participants