pybind11/tools
Jason Rhinelander 77710ff01c Make PYBIND11_CPP_STANDARD work under MSVC
Under MSVC we were ignoring PYBIND11_CPP_STANDARD and simply not
passing any standard (which makes MSVC default to its C++14 mode).

MSVC 2015u3 added the `/std:c++14` and `/std:c++latest` flags; the
latter, under MSVC 2017, enables some C++17 features (such as
`std::optional` and `std::variant`), so it is something we need to
start supporting under MSVC.

This makes the PYBIND11_CPP_STANDARD cmake variable work under MSVC,
defaulting it to /std:c++14 (matching the default -std=c++14 for
non-MSVC).

It also adds a new appveyor test running under MSVC 2017 with
/std:c++latest, which runs (and passes) the
`std::optional`/`std::variant` tests.

Also updated the documentation to clarify the c++ flags and add show
MSVC flag examples.
2017-05-09 16:41:47 -04:00
..
clang@6a00cbc4a9 updated cindex.py submodule to latest version 2017-03-30 13:14:33 +02:00
FindEigen3.cmake transparent conversion of dense and sparse Eigen types 2016-05-05 21:44:29 +02:00
FindPythonLibsNew.cmake Improve FindPythonLibsNew detection of python library directory (#523) 2016-11-22 22:01:03 +01:00
check-style.sh check-style.sh: check for accidentally committed CRLF line endings 2016-12-13 00:24:08 +01:00
libsize.py Always use return_value_policy::move for rvalues (#510) 2016-11-20 05:31:02 +01:00
mkdoc.py improve mkdoc.py determinism 2017-04-12 11:09:47 +02:00
pybind11Config.cmake.in fix one lingering ::pybind11 --> ::module target name (#603) 2017-01-13 11:10:22 +01:00
pybind11Tools.cmake Make PYBIND11_CPP_STANDARD work under MSVC 2017-05-09 16:41:47 -04:00