yhirose / cpp-peglib

A single file C++ header-only PEG (Parsing Expression Grammars) library
MIT License
884 stars 112 forks source link

Fix for u8 char C++20 incompatibility #94

Closed pwuertz closed 4 years ago

pwuertz commented 4 years ago

C++20 apparently doesn't allow std::string construction from u8 literals any more. The pre-20 behavior is restored by explicitly casting the new char_8_t back to char.

yhirose commented 4 years ago

@pwuertz, thank you for your contribution!