Skip to content

Replace folly::make_unique with std::make_unique#26730

Closed
JoeLoser wants to merge 1 commit into
facebook:masterfrom
JoeLoser:make_unique
Closed

Replace folly::make_unique with std::make_unique#26730
JoeLoser wants to merge 1 commit into
facebook:masterfrom
JoeLoser:make_unique

Conversation

@JoeLoser
Copy link
Copy Markdown
Contributor

@JoeLoser JoeLoser commented Oct 5, 2019

Summary

There is a mixed usage of folly::make_unique and std::make_unique. Soon, folly::make_unique may be removed (see this PR). Since react-native only supports C++14-compilers and later, switch to always using std::make_unique.

Changelog

[Internal] [Removed] - Replace folly::make_unique with std::make_unique

Test Plan

Running the existing test suite. No change in behavior is expected.

Problem:
- `folly::make_unique` is a backport library implementation of
  `std::make_unique` for those using compilers without C++14 support.

Solution:
- Replace calls of `folly::make_unique` with `std::make_unique`.
@JoeLoser JoeLoser requested a review from mhorowitz as a code owner October 5, 2019 16:41
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 5, 2019
@dulmandakh dulmandakh requested a review from shergin October 6, 2019 03:29
Copy link
Copy Markdown
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@JoshuaGross has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @JoeLoser in ba18ee9.

When will my fix make it into a release? | Upcoming Releases

@react-native-bot react-native-bot added the Merged This PR has been merged. label Oct 22, 2019
@JoshuaGross
Copy link
Copy Markdown
Contributor

Thanks for the PR @JoeLoser!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Type: Removal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants