-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
wchar_t/std::wstring json can be created but not accessed #1533
Comments
#1031 only introduced the possibility to parse from a wide string. Wide strings are not supported otherwise. The odd dump result shows that wide string literals are interpreted as sequence of integers. Internally, the library uses UTF-8 as encoding. Adding wide strings support outside the parser would mean ad-hoc recoding - not impossible, but a lot of work... |
Id expect that the creation from wchar_t would fail. At least with wchar_t keys. Yes supporting wstring is a pain, but windows applications basically need to use wchar_t. |
I mean the dump would be unreadable, but it would work if it would transform the wchar_t key in |
You mean |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
#1031 added support for other string types.
But the following example fails to compile.
with
I'd expect an static_assert for the creation of a json from wchar_t if you can't use it as a key.
The text was updated successfully, but these errors were encountered: