diff --git a/src/Standard/Standard_Handle.hxx b/src/Standard/Standard_Handle.hxx index 35b1ff49ca..f4fc15411b 100644 --- a/src/Standard/Standard_Handle.hxx +++ b/src/Standard/Standard_Handle.hxx @@ -117,20 +117,15 @@ namespace opencascade { return *this; } - //! STL-like cast to pointer to referred object - const T* get () const { return static_cast(this->entity); } - - //! STL-like cast to pointer to referred object - T* get () { return static_cast(this->entity); } + //! STL-like cast to pointer to referred object (note non-const). + //! @sa std::shared_ptr::get() + T* get() const { return static_cast(this->entity); } //! Member access operator (note non-const) T* operator-> () const { return static_cast(this->entity); } - //! Dereferencing operator - T& operator* () { return *get(); } - - //! Const dereferencing operator - const T& operator*() const { return *get(); } + //! Dereferencing operator (note non-const) + T& operator* () const { return *get(); } //! Check for equality template