Skip to content

Commit 7a58630

Browse files
fix clang-14
1 parent b6e83ae commit 7a58630

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

thrust/testing/device_ptr.cu

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33

44
#include <cuda/std/iterator>
55

6+
#include <iterator>
7+
68
#include <unittest/unittest.h>
79

8-
#if _CCCL_STD_VER >= 2020
10+
#if _CCCL_STD_VER >= 2020 && defined(__cpp_lib_concepts)
911
static_assert(std::indirectly_writable<thrust::device_ptr<uint8_t>, uint8_t>);
12+
#endif // _CCCL_STD_VER >= 2020 && defined(__cpp_lib_concepts)
1013
static_assert(cuda::std::indirectly_writable<thrust::device_ptr<uint8_t>, uint8_t>);
11-
#endif // _CCCL_STD_VER >= 2020
1214

1315
void TestDevicePointerManipulation()
1416
{

0 commit comments

Comments
 (0)