1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00

0027563: Foundation Classes, opencascade::handle - make operator*() consistent with operator->()

This commit is contained in:
kgv 2016-08-06 14:07:54 +03:00 committed by bugmaster
parent 3cb0f659d8
commit 9016c8bd2e

View File

@ -117,20 +117,15 @@ namespace opencascade {
return *this;
}
//! STL-like cast to pointer to referred object
const T* get () const { return static_cast<const T*>(this->entity); }
//! STL-like cast to pointer to referred object
T* get () { return static_cast<T*>(this->entity); }
//! STL-like cast to pointer to referred object (note non-const).
//! @sa std::shared_ptr::get()
T* get() const { return static_cast<T*>(this->entity); }
//! Member access operator (note non-const)
T* operator-> () const { return static_cast<T*>(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 <class T2>