Skip to content

Use std::make_unique instead of std::unique_ptr(new ...), NFC#12459

Merged
kparzysz-quic merged 1 commit intoapache:mainfrom
kparzysz-quic:make_unique
Aug 16, 2022
Merged

Use std::make_unique instead of std::unique_ptr(new ...), NFC#12459
kparzysz-quic merged 1 commit intoapache:mainfrom
kparzysz-quic:make_unique

Conversation

@kparzysz-quic
Copy link
Contributor

No description provided.

Copy link
Member

@junrushao junrushao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. BTW, isnt std::make_unqiue<> C++14?

@kparzysz-quic
Copy link
Contributor Author

It is, but I guess we've never bothered to fix the pre-14 uses.

@kparzysz-quic kparzysz-quic merged commit 247c54b into apache:main Aug 16, 2022
@kparzysz-quic kparzysz-quic deleted the make_unique branch August 16, 2022 21:06
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