DEBUGGING_MSVC_2015: -j 1 to not have interleaved error messages.

parent 0587d63e
...@@ -755,8 +755,8 @@ jobs: ...@@ -755,8 +755,8 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
python: python:
- 2.7 #- 2.7
- 3.6 #- 3.6
- 3.7 - 3.7
# todo: check/cpptest does not support 3.8+ yet # todo: check/cpptest does not support 3.8+ yet
...@@ -789,7 +789,7 @@ jobs: ...@@ -789,7 +789,7 @@ jobs:
-DDOWNLOAD_EIGEN=ON -DDOWNLOAD_EIGEN=ON
- name: Build C++14 - name: Build C++14
run: cmake --build build -j 2 run: cmake --build build -j 1
- name: Run all checks - name: Run all checks
run: cmake --build build -t check run: cmake --build build -t check
......
...@@ -2520,7 +2520,7 @@ T cast(const handle &handle) { ...@@ -2520,7 +2520,7 @@ T cast(const handle &handle) {
using namespace detail; using namespace detail;
static_assert(!cast_is_temporary_value_reference<T>::value, static_assert(!cast_is_temporary_value_reference<T>::value,
"Unable to cast type to reference: value is local to type caster"); "Unable to cast type to reference: value is local to type caster");
return cast_op<T>(load_type<T>(handle)); return cast_op<T>(load_type<T>(handle)); // HEERE 2
} }
// pytype -> pytype (calls converting constructor) // pytype -> pytype (calls converting constructor)
...@@ -2575,7 +2575,7 @@ template <typename T> detail::enable_if_t<detail::move_if_unreferenced<T>::value ...@@ -2575,7 +2575,7 @@ template <typename T> detail::enable_if_t<detail::move_if_unreferenced<T>::value
return move<T>(std::move(object)); return move<T>(std::move(object));
} }
template <typename T> detail::enable_if_t<detail::move_never<T>::value, T> cast(object &&object) { template <typename T> detail::enable_if_t<detail::move_never<T>::value, T> cast(object &&object) {
return cast<T>(object); return cast<T>(object); // HERE 2
} }
template <typename T> T object::cast() const & { return pybind11::cast<T>(*this); } template <typename T> T object::cast() const & { return pybind11::cast<T>(*this); }
...@@ -2605,7 +2605,7 @@ template <typename T> enable_if_t<!cast_is_temporary_value_reference<T>::value, ...@@ -2605,7 +2605,7 @@ template <typename T> enable_if_t<!cast_is_temporary_value_reference<T>::value,
// though if it's in dead code, so we provide a "trampoline" to pybind11::cast that only does anything in // though if it's in dead code, so we provide a "trampoline" to pybind11::cast that only does anything in
// cases where pybind11::cast is valid. // cases where pybind11::cast is valid.
template <typename T> enable_if_t<!cast_is_temporary_value_reference<T>::value, T> cast_safe(object &&o) { template <typename T> enable_if_t<!cast_is_temporary_value_reference<T>::value, T> cast_safe(object &&o) {
return pybind11::cast<T>(std::move(o)); } return pybind11::cast<T>(std::move(o)); } // HEERE 1
template <typename T> enable_if_t<cast_is_temporary_value_reference<T>::value, T> cast_safe(object &&) { template <typename T> enable_if_t<cast_is_temporary_value_reference<T>::value, T> cast_safe(object &&) {
pybind11_fail("Internal error: cast_safe fallback invoked"); } pybind11_fail("Internal error: cast_safe fallback invoked"); }
template <> inline void cast_safe<void>(object &&) {} template <> inline void cast_safe<void>(object &&) {}
......
...@@ -78,7 +78,7 @@ public: ...@@ -78,7 +78,7 @@ public:
// We can return reference types for compatibility with C++ virtual interfaces that do so, but // We can return reference types for compatibility with C++ virtual interfaces that do so, but
// note they have some significant limitations (see the documentation). // note they have some significant limitations (see the documentation).
const std::string &get_string1() override { const std::string &get_string1() override {
PYBIND11_OVERRIDE( PYBIND11_OVERRIDE( // HEERE 0
const std::string &, /* Return type */ const std::string &, /* Return type */
ExampleVirt, /* Parent class */ ExampleVirt, /* Parent class */
get_string1, /* Name of function */ get_string1, /* Name of function */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment