Skip to content

Commit a99f997

Browse files
author
Mmanu Chaturvedi
committed
Fix cast
1 parent e4e3745 commit a99f997

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pybind11/cast.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1970,7 +1970,7 @@ detail::enable_if_t<
19701970

19711971
template <typename T>
19721972
detail::enable_if_t<
1973-
std::is_rvalue_reference<T&&>::value && !detail::is_pyobject<detail::intrinsic_t<T>>::value, object>
1973+
std::is_rvalue_reference<T&&>::value && !std::is_pointer<T>::value && !detail::is_pyobject<detail::intrinsic_t<T>>::value, object>
19741974
cast(T&& value) {
19751975
// Have to use `pybind11::move` because some compilers might try to bind `move` to `std::move`...
19761976
return pybind11::move<T>(std::move(value));

0 commit comments

Comments
 (0)