File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,9 @@ PYBIND11_WARNING_DISABLE_CLANG("-Wgnu-zero-variadic-macro-arguments")
4444#endif
4545
4646#if defined(__cpp_if_constexpr) && __cpp_if_constexpr >= 201606
47- # define PYBIND11_MYABE_CONSTEXPR constexpr
47+ # define PYBIND11_MYABE_CONSTEXPR constexpr
4848#else
49- # define PYBIND11_MYABE_CONSTEXPR
49+ # define PYBIND11_MYABE_CONSTEXPR
5050#endif
5151
5252PYBIND11_NAMESPACE_BEGIN (PYBIND11_NAMESPACE)
@@ -3612,8 +3612,8 @@ function get_override(const T *this_ptr, const char *name) {
36123612 auto o = override (__VA_ARGS__); \
36133613 PYBIND11_WARNING_PUSH \
36143614 PYBIND11_WARNING_DISABLE_MSVC (4127 ) \
3615- if PYBIND11_MYABE_CONSTEXPR \
3616- ( pybind11::detail::cast_is_temporary_value_reference<ret_type>::value \
3615+ if PYBIND11_MYABE_CONSTEXPR ( \
3616+ pybind11::detail::cast_is_temporary_value_reference<ret_type>::value \
36173617 && !pybind11::detail::is_same_ignoring_cvref<ret_type, PyObject *>::value) { \
36183618 static pybind11::detail::override_caster_t <ret_type> caster; \
36193619 return pybind11::detail::cast_ref<ret_type>(std::move (o), caster); \
You can’t perform that action at this time.
0 commit comments