-
Notifications
You must be signed in to change notification settings - Fork 45
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
MSVC uses wrong field type for strings #177
Comments
This is a bug, eventually fixed in C++20 (VS 2019 16.10): |
offa
added a commit
that referenced
this issue
Mar 10, 2023
On MSVC passing 'const char*' assigns a 'bool' to std::variant instead of std::string. A non-template overload does prevent this, but will catch '0' as nullptr. This can be removed once C++20 is used.
Workaround implemented. It's no longer necessary once C++20 is used. |
offa
added a commit
that referenced
this issue
Nov 2, 2023
On MSVC passing 'const char*' assigns a 'bool' to std::variant instead of std::string. A non-template overload does prevent this, but will catch '0' as nullptr. This can be removed once C++20 is used.
offa
added a commit
that referenced
this issue
Feb 13, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
MSVC seems to use
bool
variant instead ofstd::string
forconst char*
.The text was updated successfully, but these errors were encountered: