Skip to content

Commit 81329b9

Browse files
committed
[pybindxi.detail.common] fix compilation with icc
See pybind/pybind11#2679
1 parent e8d7f6c commit 81329b9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

dune/pybindxi/detail/common.h

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

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

0 commit comments

Comments
 (0)