Skip to content

Commit 92b8038

Browse files
bernhardmgruberdavebayer
authored andcommitted
Turn C++ dialect warning into error (NVIDIA#3453)
1 parent f8ef7c6 commit 92b8038

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

cub/cub/util_cpp_dialect.cuh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ CUB_COMPILER_DEPRECATION_SOFT(MSVC 2019(19.20 / 16.0 / 14.20), MSVC 2017);
8888
// C++17 dialect check:
8989
# ifndef CCCL_IGNORE_DEPRECATED_CPP_DIALECT
9090
# if _CCCL_STD_VER < 2017
91-
CUB_COMP_DEPR_IMPL(CUB requires at least C++ 17. Define CCCL_IGNORE_DEPRECATED_CPP_DIALECT to suppress this message.)
91+
# error CUB requires at least C++17. Define CCCL_IGNORE_DEPRECATED_CPP_DIALECT to suppress this message.
9292
# endif // _CCCL_STD_VER >= 2017
9393
# endif
9494

thrust/thrust/detail/config/cpp_dialect.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ THRUST_COMPILER_DEPRECATION_SOFT(MSVC 2019(19.20 / 16.0 / 14.20), MSVC 2017);
7878
// C++17 dialect check:
7979
#ifndef CCCL_IGNORE_DEPRECATED_CPP_DIALECT
8080
# if _CCCL_STD_VER < 2017
81-
THRUST_COMP_DEPR_IMPL(
82-
Thrust requires at least C++ 17. Define CCCL_IGNORE_DEPRECATED_CPP_DIALECT to suppress this message.)
81+
# error Thrust requires at least C++17. Define CCCL_IGNORE_DEPRECATED_CPP_DIALECT to suppress this message.
8382
# endif // _CCCL_STD_VER >= 2017
8483
#endif
8584

0 commit comments

Comments
 (0)