Merge pull request #94 from pwuertz/patch-2

Fix for u8 char C++20 incompatibility
pull/99/head v0.1.6
yhirose 4 years ago committed by GitHub
commit 02db0405f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      peglib.h

@ -3035,7 +3035,7 @@ private:
cls("0-9a-fA-F"), cls("0-9a-fA-F")),
seq(npd(chr('\\')), dot()));
g["LEFTARROW"] <= seq(cho(lit("<-"), lit(u8"")), g["Spacing"]);
g["LEFTARROW"] <= seq(cho(lit("<-"), lit(reinterpret_cast<const char*>(u8""))), g["Spacing"]);
~g["SLASH"] <= seq(chr('/'), g["Spacing"]);
~g["PIPE"] <= seq(chr('|'), g["Spacing"]);
g["AND"] <= seq(chr('&'), g["Spacing"]);

Loading…
Cancel
Save