diff --git a/include/pybind11/pytypes.h b/include/pybind11/pytypes.h index 4df3d9637..805b04fcd 100644 --- a/include/pybind11/pytypes.h +++ b/include/pybind11/pytypes.h @@ -236,11 +236,6 @@ protected: // Tags for choosing constructors from raw PyObject * struct borrowed_t { }; struct stolen_t { }; - // These can cause linkage problems; see #770 - PYBIND11_DEPRECATED("Use of the `borrowed` static variable is deprecated; use `borrowed_t{}' instead") - static constexpr borrowed_t borrowed{}; - PYBIND11_DEPRECATED("Use of the `stolen` static variable is deprecated; use `stolen_t{}' instead") - static constexpr stolen_t stolen{}; template friend T reinterpret_borrow(handle); template friend T reinterpret_steal(handle);