Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
470e718a
Commit
470e718a
authored
Aug 29, 2018
by
Henry Schreiner
Committed by
Wenzel Jakob
Sep 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update C++ macros for C++17 and MSVC Z mode (#1347)
parent
c769c629
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
include/pybind11/detail/common.h
+4
-3
No files found.
include/pybind11/detail/common.h
View file @
470e718a
...
@@ -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 >
201402L
/* Temporary: should be updated to >= the final C++17 value once known */
# if __cplusplus >
= 201703L
# 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