-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
NVCC error with -std=c++20 #3543
Comments
Removing the NVCC workaround might have some other negative effects so I think a better solution is to make template <typename... T> constexpr int ignore_unused(const T&...) { return 0; } (we need a non-void return type for C++11) A PR would be welcome. |
Yeah, I believe this workaround was introduced for a reason. Maybe then remove it if C++ standard is >= 20? Because there are actually more similar errors for different functions. The full error output is like this:
|
Fine with me. You are in a better position to test NVCC anyway =). |
Right :) I'm not the biggest C++ expert out there though... |
The repro code is very simple:
By default NVCC 12.2 compiles this code just fine, but when c++20 standard is used a few errors are thrown:
The issue apparently is resolved when the NVCC-specific workaround is just removed from here: https://github.com/fmtlib/fmt/blob/master/include/fmt/core.h#L95
The text was updated successfully, but these errors were encountered: