Skip to content

Commit db587f0

Browse files
committed
core: add EIGENPY_WITH_CXX macros
1 parent 55aa812 commit db587f0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

include/eigenpy/fwd.hpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@
1313
#define EIGENPY_MSVC_COMPILER
1414
#endif
1515

16+
#if (__cplusplus >= 201703L || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703))
17+
#define EIGENPY_WITH_CXX17_SUPPORT
18+
#endif
19+
20+
#if (__cplusplus >= 201402L || (defined(_MSVC_LANG) && _MSVC_LANG >= 201403))
21+
#define EIGENPY_WITH_CXX14_SUPPORT
22+
#endif
23+
24+
#if (__cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1600))
25+
#define EIGENPY_WITH_CXX11_SUPPORT
26+
#endif
27+
1628
#define EIGENPY_STRING_LITERAL(string) #string
1729
#define EIGENPY_STRINGIZE(string) EIGENPY_STRING_LITERAL(string)
1830
#define _EIGENPY_PPCAT(A, B) A##B

0 commit comments

Comments
 (0)