-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tricky to use with MSVC and C++20 #65
Comments
Hi Sebastian, thanks for your message, I will make the adjustments to the code now :) |
May I ask you to check on your side, whether it works now? |
Hey, thanks for the fix. I just checked and it works now. However on MSVC warning levels 3+, a simple tiny-utf8/include/tinyutf8/tinyutf8.h Line 160 in d525494
|
Super, glad to hear that! Ok, thanks for letting me now 😃 |
Yeah just saw and tested it. Everything's beautiful. Thanks again. |
Nice 👍 |
Thanks for the bug report! |
The example code doesn't compile with C++20 or above. The only mention of C++20 is a note to use
tiny_utf8::u8string
instead. That also fails to compile on MSVC at least since it's guarded by a check on__cplusplus
. That macro is by default not set properly on MSVC, see https://docs.microsoft.com/en-us/cpp/build/reference/zc-cplusplus. Maybe that check could be rewritten in a more universal way, or at least some documentation be added about any of this.The text was updated successfully, but these errors were encountered: