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
1.79: Build error with gcc 8 in C++17 mode: ambiguous conversion to string_view #708
Comments
I suspect, this is because the compiler considers two conversion paths:
I realize that the last step in the first chain is redundant and should not be needed (this is just my interpretation of the compiler error), and I agree that this is probably a compiler issue. But still, gcc 8 is fairly recent and it would be nice if it was supported. |
@pdimov FYI, just in case if |
It looks like gcc 8.3 fails: https://godbolt.org/z/bnd9eMEx9 But gcc 8.4 (and 8.5) works: https://godbolt.org/z/TGj1exv1v |
This might fix it #709 |
All the |
- Build was broken for gcc 8.3, which is the one we use in base. - More details: boostorg/json#708
Version of Boost
Boost 1.79.0 release with Boost.JSON patch from release notes applied.
Steps necessary to reproduce the problem
Build Boost.JSON:
This results in compiler errors like this:
Full build log attached:
boost-build.log
All relevant compiler information
This happens with gcc 8.3 that is shipped with Debian 10 Buster, when building in C++17 mode with GNU extensions.
The text was updated successfully, but these errors were encountered: