We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 282f10e commit 5c721f8Copy full SHA for 5c721f8
rpp/base.h
@@ -1,12 +1,12 @@
1
2
#pragma once
3
4
-#if __cplusplus < 202002L
+#ifdef _MSC_VER
5
+
6
+#if _MSVC_LANG < 202002L
7
#error "Unsupported C++ standard: only C++20 or newer is supported."
8
#endif
9
-#ifdef _MSC_VER
-
10
#define RPP_COMPILER_MSVC
11
#define RPP_FORCE_INLINE __forceinline
12
#define RPP_MSVC_INTRINSIC [[msvc::intrinsic]]
@@ -19,6 +19,10 @@
19
20
#elif defined __clang__
21
22
+#if __cplusplus < 202002L
23
+#error "Unsupported C++ standard: only C++20 or newer is supported."
24
+#endif
25
26
#define RPP_COMPILER_CLANG
27
#define RPP_FORCE_INLINE __attribute__((always_inline)) inline
28
#define RPP_MSVC_INTRINSIC
0 commit comments