mirror of
https://github.com/pybind/pybind11.git
synced 2025-02-12 19:57:48 +00:00
Adding MISSING comments in operator std::unique_ptr<mpty[ const]>.
This commit is contained in:
parent
6601ec4ea7
commit
68bee938de
@ -362,7 +362,10 @@ struct type_caster<std::unique_ptr<mpty>> : smart_holder_type_caster_load<mpty>
|
|||||||
template <typename>
|
template <typename>
|
||||||
using cast_op_type = std::unique_ptr<mpty>;
|
using cast_op_type = std::unique_ptr<mpty>;
|
||||||
|
|
||||||
operator std::unique_ptr<mpty>() { return smhldr_ptr->as_unique_ptr<mpty>(); }
|
operator std::unique_ptr<mpty>() {
|
||||||
|
// MISSING: value_and_holder value_ptr reset, deregister_instance.
|
||||||
|
return smhldr_ptr->as_unique_ptr<mpty>();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
@ -378,7 +381,10 @@ struct type_caster<std::unique_ptr<mpty const>> : smart_holder_type_caster_load<
|
|||||||
template <typename>
|
template <typename>
|
||||||
using cast_op_type = std::unique_ptr<mpty const>;
|
using cast_op_type = std::unique_ptr<mpty const>;
|
||||||
|
|
||||||
operator std::unique_ptr<mpty const>() { return smhldr_ptr->as_unique_ptr<mpty>(); }
|
operator std::unique_ptr<mpty const>() {
|
||||||
|
// MISSING: value_and_holder value_ptr reset, deregister_instance.
|
||||||
|
return smhldr_ptr->as_unique_ptr<mpty>();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace detail
|
} // namespace detail
|
||||||
|
Loading…
Reference in New Issue
Block a user