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

parent 0587d63e
......@@ -755,8 +755,8 @@ jobs:
fail-fast: false
matrix:
python:
- 2.7
- 3.6
#- 2.7
#- 3.6
- 3.7
# todo: check/cpptest does not support 3.8+ yet
......@@ -789,7 +789,7 @@ jobs:
-DDOWNLOAD_EIGEN=ON
- name: Build C++14
run: cmake --build build -j 2
run: cmake --build build -j 1
- name: Run all checks
run: cmake --build build -t check
......
......@@ -2520,7 +2520,7 @@ T cast(const handle &handle) {
using namespace detail;
static_assert(!cast_is_temporary_value_reference<T>::value,
"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)
......@@ -2575,7 +2575,7 @@ template <typename T> detail::enable_if_t<detail::move_if_unreferenced<T>::value
return move<T>(std::move(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); }
......@@ -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
// cases where pybind11::cast is valid.
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 &&) {
pybind11_fail("Internal error: cast_safe fallback invoked"); }
template <> inline void cast_safe<void>(object &&) {}
......
......@@ -78,7 +78,7 @@ public:
// We can return reference types for compatibility with C++ virtual interfaces that do so, but
// note they have some significant limitations (see the documentation).
const std::string &get_string1() override {
PYBIND11_OVERRIDE(
PYBIND11_OVERRIDE( // HEERE 0
const std::string &, /* Return type */
ExampleVirt, /* Parent class */
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