-
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
Compile errors with CLang7 & libc++ #158
Comments
You are correct, fixing in coming PR. Are you sure it makes sense to drop boost optional if optional and boost are both available? They shouldn't clash, and a user may still want to use Boost. |
I have no opinion on the boost support -- I don't use it and don't have it installed. If you're sure they don't clash then leaving it enabled ought to be fine. |
It will only activate if you have Boost. You can always disable it by defining |
Please verify this is now fixed in master through #159. |
I'm still getting an error. I think #159 is wrong, it should check CLI11/include/CLI/Optional.hpp Line 22 in 4389b33
Right now, it includes experimental only if non-experimental already exists! Changing to |
Check and see if that is better, please! Thanks. |
i can't exactly check, considering I applied the patch directly on the release CLI11.hpp. But this is the same as the working code I have locally (Android Studio NDK r18 Beta 2). |
Okay, I'll assume for a 1 char fix that's safe enough. :) |
Apologies, I haven't had time to sync and test this yet. |
I have built from HEAD using Clang 7.0.0 on Linux and it worked perfectly. Thanks. |
I updated to CLI v1.6.1 and started getting errors about the inclusion of <experimental/optional>, telling me should be included instead (this is because the <experimental/optional> header remains in place to generate an error that it shouldn't be used). Examining Optional.hpp it is apparent that when compiling for C++17, both CLI11_STD_OPTIONAL and CLI11_EXPERIMENTAL_OPTIONAL are defined and therefore both and <experimental/optional> are included. Adding a !defined(CLI11_STD_OPTIONAL) to the #if around #define CLI11_EXPERIMENTAL_OPTIONAL fixes this. A similar thing should be done with the boost optional.
The text was updated successfully, but these errors were encountered: