Skip to content
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

workaround an nvcc bug #1681

Merged
merged 1 commit into from
Dec 10, 2021
Merged

workaround an nvcc bug #1681

merged 1 commit into from
Dec 10, 2021

Conversation

anstaf
Copy link
Contributor

@anstaf anstaf commented Dec 9, 2021

No description provided.

@anstaf anstaf requested a review from havogt December 9, 2021 12:36
@@ -369,7 +369,7 @@ namespace gridtools {
template <class Fun>
struct get_fun_result {
template <class... Ts>
using apply = decltype(std::declval<Fun const &>()(std::declval<Ts>()...));
using apply = decltype(std::declval<std::add_lvalue_reference_t<std::add_const_t<Fun>>>()(std::declval<Ts>()...));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's that about?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean is there any difference between the old and the new version?

@havogt
Copy link
Contributor

havogt commented Dec 9, 2021

launch jenkins

@anstaf
Copy link
Contributor Author

anstaf commented Dec 9, 2021 via email

@havogt havogt merged commit 5a88ea3 into GridTools:master Dec 10, 2021
havogt pushed a commit to havogt/gridtools that referenced this pull request Apr 6, 2023
Fix a problem where nvcc doesn't distinguish type and non-type template parameters of template template parameters. See https://godbolt.org/z/orrev1xnM
havogt pushed a commit to havogt/gridtools that referenced this pull request Apr 11, 2023
Fix a problem where nvcc doesn't distinguish type and non-type template parameters of template template parameters. See https://godbolt.org/z/orrev1xnM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants