We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05288a6 commit 324243fCopy full SHA for 324243f
1 file changed
thrust/detail/config/cpp_dialect.h
@@ -16,24 +16,17 @@
16
17
#pragma once
18
19
-#ifdef _MSC_VER
20
- #define THRUST_CPP_VER _MSVC_LANG
21
-#else
22
- #define THRUST_CPP_VER __cplusplus
23
-#endif
24
-
25
-#if THRUST_CPP_VER < 201103L
+#if __cplusplus < 201103L
26
#define THRUST_CPP03
27
#define THRUST_CPP_DIALECT 2003
28
-#elif THRUST_CPP_VER < 201402L
+#elif __cplusplus < 201402L
29
#define THRUST_CPP11
30
#define THRUST_CPP_DIALECT 2011
31
-#elif THRUST_CPP_VER < 201703L
+#elif __cplusplus < 201703L
32
#define THRUST_CPP14
33
#define THRUST_CPP_DIALECT 2014
34
#else
35
#define THRUST_CPP17
36
#define THRUST_CPP_DIALECT 2017
37
#endif
38
39
-#undef THRUST_CPP_VER
0 commit comments