mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-29 08:32:02 +00:00
Remove operator type *() unique_ptr
, and &
(not sure how they would be useful).
This commit is contained in:
parent
d4fc392ebe
commit
391d7726ad
@ -1001,14 +1001,6 @@ public:
|
|||||||
return false; // BAKEIN_WIP: What is the best behavior here?
|
return false; // BAKEIN_WIP: What is the best behavior here?
|
||||||
}
|
}
|
||||||
|
|
||||||
explicit operator type *() {
|
|
||||||
throw std::runtime_error("BAKEIN_WIP: operator type *() unique_ptr");
|
|
||||||
}
|
|
||||||
|
|
||||||
explicit operator type &() {
|
|
||||||
throw std::runtime_error("BAKEIN_WIP: operator type &() unique_ptr");
|
|
||||||
}
|
|
||||||
|
|
||||||
template <typename>
|
template <typename>
|
||||||
using cast_op_type = std::unique_ptr<type, deleter>;
|
using cast_op_type = std::unique_ptr<type, deleter>;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user