mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-11 08:03:55 +00:00
Removed unused/unwanted public ref_cast
This commit is contained in:
parent
7dfb932e70
commit
f3f53e2b03
@ -935,9 +935,6 @@ template <typename T> detail::enable_if_t<detail::move_if_unreferenced<T>::value
|
||||
template <typename T> detail::enable_if_t<detail::move_never<T>::value, T> cast(object &&object) {
|
||||
return cast<T>(object);
|
||||
}
|
||||
// Provide a ref_cast() with move support for objects (only participates for moveable types)
|
||||
template <typename T> detail::enable_if_t<detail::move_is_plain_type<T>::value, T>
|
||||
ref_cast(object &&object) { return cast<T>(std::move(object)); }
|
||||
|
||||
template <typename T> T object::cast() const & { return pybind11::cast<T>(*this); }
|
||||
template <typename T> T object::cast() && { return pybind11::cast<T>(std::move(*this)); }
|
||||
|
Loading…
Reference in New Issue
Block a user