diff --git a/include/pybind11/cast.h b/include/pybind11/cast.h index 0cf27585..8b2983b1 100644 --- a/include/pybind11/cast.h +++ b/include/pybind11/cast.h @@ -935,9 +935,6 @@ template detail::enable_if_t::value template detail::enable_if_t::value, T> cast(object &&object) { return cast(object); } -// Provide a ref_cast() with move support for objects (only participates for moveable types) -template detail::enable_if_t::value, T> -ref_cast(object &&object) { return cast(std::move(object)); } template T object::cast() const & { return pybind11::cast(*this); } template T object::cast() && { return pybind11::cast(std::move(*this)); }