-
Notifications
You must be signed in to change notification settings - Fork 353
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
C++17 mode #396
Comments
Here is the visual studio warning
It has to do with the Optional test of optional I think what is happening is that the optional type can take a double as part of the constructor just fine (at least in Visual Studio) thus the type detection in CLI11 is allowing the more flexible type through lexical cast and we get a warning on double truncation. We can remove the warning on visual studio, or just for that case, I don't really want to change the test since that would change the nature of the test itself as that was intended to test the automatic detection. If this warning was in actual code I would recommend using the explicit version of add_option with the template arguments. Longer term I have some ideas on improving the type detection for add_option so that would resolve the issue but that is something for 2.0. |
I'm fine with ignoring the warning, but we should do so, since otherwise we can't run the test suite on Windows. |
We have a warning or two in C++17 mode on windows, and macOS 10.14 does not support C++17 mode - we might be able to get this to pass by checking a feature macro instead of C++ mode for filesystem. See #394.
The text was updated successfully, but these errors were encountered: