Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
7bd4b397
Unverified
Commit
7bd4b397
authored
Nov 23, 2020
by
Tobias Leibner
Committed by
GitHub
Nov 23, 2020
Browse files
fix: define PYBIND11_CPP14 for recent intel compilers (#2679)
parent
af8849f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
include/pybind11/detail/common.h
include/pybind11/detail/common.h
+3
-1
No files found.
include/pybind11/detail/common.h
View file @
7bd4b397
...
...
@@ -27,7 +27,7 @@
# endif
#endif
#if !(defined(_MSC_VER) && __cplusplus == 199711L)
&& !defined(__INTEL_COMPILER)
#if !(defined(_MSC_VER) && __cplusplus == 199711L)
# if __cplusplus >= 201402L
# define PYBIND11_CPP14
# if __cplusplus >= 201703L
...
...
@@ -49,6 +49,8 @@
#if defined(__INTEL_COMPILER)
# if __INTEL_COMPILER < 1800
# error pybind11 requires Intel C++ compiler v18 or newer
# elif __INTEL_COMPILER < 1900 && defined(PYBIND11_CPP14)
# error pybind11 supports only C++11 with Intel C++ compiler v18. Use v19 or newer for C++14.
# endif
#elif defined(__clang__) && !defined(__apple_build_version__)
# if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 3)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment