Skip to content

Commit

Permalink
assert that cuda::std::declval is noexcept (#2588)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericniebler authored Oct 17, 2024
1 parent 1d41de1 commit 09a879c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class A
int main(int, char**)
{
static_assert((cuda::std::is_same<decltype(cuda::std::declval<A>()), A&&>::value), "");
static_assert(noexcept(cuda::std::declval<A>()), "");

return 0;
}

0 comments on commit 09a879c

Please sign in to comment.