forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fabric: ContextContainer is now able to store any copyable values
Summary: @public Previously, ContextContainer could store only `shared_ptr`s, but now it wraps all values in own `shared_ptr` container. I wish we can use `unique_ptr` here, but apparently we cannot because `unique_ptr` does not support type-erasure (`std::unique_ptr<void>` is illigal). Becasue ContextContainer is not supposed to be used in hot paths, the performance aspect of that does not actually matter. Reviewed By: mdvacca Differential Revision: D8853446 fbshipit-source-id: e5d0a5595fe44c59f1395d6ffccf9d3fed923c83
- Loading branch information
1 parent
07a4a95
commit 9395485
Showing
2 changed files
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters