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
3789b4f9
Commit
3789b4f9
authored
Aug 29, 2018
by
Henry Schreiner
Committed by
Wenzel Jakob
Aug 29, 2018
Browse files
Update C++ macros for C++17 and MSVC Z mode (#1347)
parent
7bb1da96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
include/pybind11/detail/common.h
include/pybind11/detail/common.h
+4
-3
No files found.
include/pybind11/detail/common.h
View file @
3789b4f9
...
@@ -27,15 +27,16 @@
...
@@ -27,15 +27,16 @@
# endif
# endif
#endif
#endif
#if !defined(_MSC_VER) && !defined(__INTEL_COMPILER)
#if !
(
defined(_MSC_VER) &&
__cplusplus == 199711L) &&
!defined(__INTEL_COMPILER)
# if __cplusplus >= 201402L
# if __cplusplus >= 201402L
# define PYBIND11_CPP14
# define PYBIND11_CPP14
# if __cplusplus > 201
402L
/* Temporary: should be updated to >= the final C++17 value once known */
# if __cplusplus >
=
201
703L
# define PYBIND11_CPP17
# define PYBIND11_CPP17
# endif
# endif
# endif
# endif
#elif defined(_MSC_VER)
#elif defined(_MSC_VER)
&& __cplusplus == 199711L
// MSVC sets _MSVC_LANG rather than __cplusplus (supposedly until the standard is fully implemented)
// MSVC sets _MSVC_LANG rather than __cplusplus (supposedly until the standard is fully implemented)
// Unless you use the /Zc:__cplusplus flag on Visual Studio 2017 15.7 Preview 3 or newer
# if _MSVC_LANG >= 201402L
# if _MSVC_LANG >= 201402L
# define PYBIND11_CPP14
# define PYBIND11_CPP14
# if _MSVC_LANG > 201402L && _MSC_VER >= 1910
# if _MSVC_LANG > 201402L && _MSC_VER >= 1910
...
...
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