Use enum classes in C++ Turbo Modules#41923
Conversation
|
This pull request was exported from Phabricator. Differential Revision: D52098598 |
Base commit: 1e22fa3 |
6428e4d to
04bb431
Compare
|
This pull request was exported from Phabricator. Differential Revision: D52098598 |
04bb431 to
757adfa
Compare
|
This pull request was exported from Phabricator. Differential Revision: D52098598 |
757adfa to
1f1468b
Compare
|
This pull request was exported from Phabricator. Differential Revision: D52098598 |
1f1468b to
71f7fd8
Compare
|
This pull request was exported from Phabricator. Differential Revision: D52098598 |
71f7fd8 to
a10829d
Compare
|
This pull request was exported from Phabricator. Differential Revision: D52098598 |
a10829d to
4a25771
Compare
|
This pull request was exported from Phabricator. Differential Revision: D52098598 |
4a25771 to
3093e21
Compare
|
This pull request was exported from Phabricator. Differential Revision: D52098598 |
3093e21 to
293db37
Compare
|
This pull request was exported from Phabricator. Differential Revision: D52098598 |
Summary:
Changelog: [Internal][BREAKING] Use C++ enum classes in C++ Turbo Modules
Problem:
Using **C styles** `enums` can easily cause compiliation errors if symbol names collide. This code does not compile:
```
enum CustomEnumInt { A = 23, B = 42 };
static int A = 22;
```
This **C++ code**, using `enum classes` compiles:
```
enum class CustomEnumInt : int32_t { A = 23, B = 42 };
static int A = 22;
```
Reviewed By: rshest
Differential Revision: D52098598
293db37 to
b03e014
Compare
|
This pull request was exported from Phabricator. Differential Revision: D52098598 |
|
This pull request was successfully merged by @christophpurrer in 8183afe. When will my fix make it into a release? | Upcoming Releases |
Summary: Changelog: [Internal]
Differential Revision: D52098598