Skip to content

Commit ca5494f

Browse files
committed
fix: define PYBIND11_CPP14 for recent intel compilers
1 parent 17c22b9 commit ca5494f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

include/pybind11/detail/common.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@
2727
# endif
2828
#endif
2929

30-
#if !(defined(_MSC_VER) && __cplusplus == 199711L) && !defined(__INTEL_COMPILER)
30+
#if defined(__INTEL_COMPILER) && __INTEL_COMPILER >= 1900
31+
# if __cplusplus >= 201402L
32+
# define PYBIND11_CPP14
33+
# endif
34+
#elif !(defined(_MSC_VER) && __cplusplus == 199711L)
3135
# if __cplusplus >= 201402L
3236
# define PYBIND11_CPP14
3337
# if __cplusplus >= 201703L

0 commit comments

Comments
 (0)