Skip to content

Commit c079d0f

Browse files
authored
Avoid invalid compiler warning with VS2026 (#7077)
internally we are seeing invalid compiler warnings about a missing `template` keyword which is definitely there. To unblock internal CI disable that warning until the actual compiler issue is found Addresses nvbug5765092
1 parent 8136b82 commit c079d0f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libcudacxx/test/support/type_algorithms.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,17 @@ template <class... Types>
5353
__host__ __device__ constexpr void swallow(Types...)
5454
{}
5555

56+
_CCCL_DIAG_PUSH
57+
_CCCL_DIAG_SUPPRESS_MSVC(4864) // nvbug5765092 latest toolchain complains about missing template
58+
5659
template <class... Types, class Functor>
5760
__host__ __device__ constexpr void for_each(type_list<Types...>, Functor f)
5861
{
5962
swallow((f.template operator()<Types>(), 0)...);
6063
}
6164

65+
_CCCL_DIAG_POP
66+
6267
template <class T>
6368
struct type_identity
6469
{

0 commit comments

Comments
 (0)