-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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 error with clang 5.0 -std=c++1z and no string_view #939
Comments
Related: #735. |
We do not include Please have a look at #735 - in particular, if you can include |
I am building with libc++ not libstdc++, on ubuntu 17.10. In the code I am using it in I use a string_view library that is not from the stl since it needed to work with string_view objects without requiring c++1z capability on all compilers so it is in a different namespace, I presume that would cause some interesting issues as well but the uses don't overlap in the code. I think I had the master branch in the code, but develop seems to fail in the same way. I suppose I should check the compile with libstdc++ and see if it fails in the same way. |
it compiles properly using libstdc++ and everything else the same, so using libc++ would appear to be the issue. |
Thanks for the feedback. Does |
No it doesn't, looks like the libc++ used in Ubuntu 17.10 is version 3.9 and string_view was not integrated until 4.0, but the compiler itself has c++17 support and the 3.9 library has partial support. |
Thanks. Then this seems to be a duplicate of #735. |
Bug Report
Compile error on clang 5.0 with -std=c++1z
All other compilers tested thus far work fine.
my fix was to simply comment out that line since I wasn't using std::string_view, but but I am guessing there is a reason for including string_view in the enable_if statement so I don't think my fix is a valid solution and I am not familiar enough with the structures used to integrate a check for the existence of string_view before using it in an is_same template.
The other options was to include <string_view> if JSON_HAS_CPP_17 is enabled but that didn't seem proper either.
The text was updated successfully, but these errors were encountered: