-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Incorrect FMT_USE_STRING_VIEW logic results in libstdc++ compilation errors #1850
Comments
Note that I can't produce the compilation failure in |
According to #686, libc++ supports |
You can see that the check is correct on godbolt:
|
Thanks for the clue. We depend on libcudac++, which is based on libc++, and I think including that before including fmt is causing That said, it seems like a more conservative check like the one in #1852 is still correct and may allow use cases like ours (that have parts of both standard libraries in effect) to work. |
Unfortunately the check in #1852 is not correct because |
Closed since it looks like an issue with |
@vitaut thanks for your time and sorry for the noise. Looks like this is fixed in the latest libcudac++ and I should have a workaround until we are able to use the latest. |
No worries, glad it's fixed. |
The following linked code in
core.h
results in compilation errors compiling with GCC (libstdc++) in our (C++14) library (https://github.com/rapidsai/cudf) which depends onspdlog
, which bundles a version offmt
.fmt/include/fmt/core.h
Lines 228 to 237 in 6cccdc2
Specifically, while libc++ (clang) provides
string_view
before C++17, libstdc++ does not, it providesexperimental/string_view
.Thus, I believe the
||
on line 230 should be&&
, and making this change fixes our compilation issues.The text was updated successfully, but these errors were encountered: