We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4e3745 commit a99f997Copy full SHA for a99f997
include/pybind11/cast.h
@@ -1970,7 +1970,7 @@ detail::enable_if_t<
1970
1971
template <typename T>
1972
detail::enable_if_t<
1973
- std::is_rvalue_reference<T&&>::value && !detail::is_pyobject<detail::intrinsic_t<T>>::value, object>
+ std::is_rvalue_reference<T&&>::value && !std::is_pointer<T>::value && !detail::is_pyobject<detail::intrinsic_t<T>>::value, object>
1974
cast(T&& value) {
1975
// Have to use `pybind11::move` because some compilers might try to bind `move` to `std::move`...
1976
return pybind11::move<T>(std::move(value));
0 commit comments