SIGN IN SIGN UP
facebook / react-native UNCLAIMED

A framework for building native applications using React

0 0 0 C++

Fix builds with C++20 (#38501)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/38501

char8_t is a distinct type in C++20, which would need to be propagated
everywhere else (e.g. using `std::u8string` instead of `std::string`).
The code was already assuming that char is UTF-8, so we can just cast
accordingly (which works on all compilers: https://godbolt.org/z/9cv4c48o4).

Reviewed By: javache

Differential Revision: D47537998

fbshipit-source-id: ba045483361463f1754e02791114b78f51932a56
S
Shoaib Meenai committed
2d3348e642d263ae3f1cb2d3d6fb5ddaefcc125a
Parent: 6d1de63
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com> on 7/19/2023, 11:34:41 PM