Closed LHLaurini closed 3 years ago
Thank you for the report, but this cannot be the correct fix. (a) what about the other u8 strings, and calls to S2C? (b) The use of utf here is to separate the serialization character set from the source and execution character sets. Removing the u8 prefix negates that.
Here's the thing: the library itself is compiled with C++11, so the only needed change is to the header.
Alternatively, I can move MessageBuffer::Space
to messagebuffer.cc
and the prefix can stay.
Is this better?
yes, thanks. I don't think stopping that function being inlineable is a major loss. I think we can move the S2C handling out of the user-facing header entirely.
Since C++20, the type of
u8"..."
isconst char8_t[N]
, notconst char[N]
.