From 391d7726adb1f0cffef0835e985044930f977c8c Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Thu, 4 Jul 2024 08:25:06 -0700 Subject: [PATCH] Remove `operator type *() unique_ptr`, and `&` (not sure how they would be useful). --- include/pybind11/cast.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/include/pybind11/cast.h b/include/pybind11/cast.h index 58a606463..c64d76256 100644 --- a/include/pybind11/cast.h +++ b/include/pybind11/cast.h @@ -1001,14 +1001,6 @@ public: 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 using cast_op_type = std::unique_ptr;