diff options
Diffstat (limited to 'python/google/protobuf/pyext/scoped_pyobject_ptr.h')
-rw-r--r-- | python/google/protobuf/pyext/scoped_pyobject_ptr.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/python/google/protobuf/pyext/scoped_pyobject_ptr.h b/python/google/protobuf/pyext/scoped_pyobject_ptr.h index 9979b83b..a128cd4c 100644 --- a/python/google/protobuf/pyext/scoped_pyobject_ptr.h +++ b/python/google/protobuf/pyext/scoped_pyobject_ptr.h @@ -60,11 +60,6 @@ class ScopedPyObjectPtr { return ptr_; } - // ScopedPyObjectPtr should not be copied. - // We explicitly list and delete this overload to avoid automatic conversion - // to PyObject*, which is wrong in this case. - PyObject* reset(const ScopedPyObjectPtr& other) = delete; - // Releases ownership of the object. // The caller now owns the returned reference. PyObject* release() { @@ -73,8 +68,6 @@ class ScopedPyObjectPtr { return p; } - operator PyObject*() { return ptr_; } - PyObject* operator->() const { assert(ptr_ != NULL); return ptr_; |