Add a reset() function to FbTk::RefCount
to make it's interface more compatible with other smart pointers.
This commit is contained in:
parent
0f85ade9be
commit
e4157821fc
1 changed files with 1 additions and 0 deletions
|
@ -41,6 +41,7 @@ public:
|
|||
Pointer &operator * () const { return *get(); }
|
||||
Pointer *operator -> () const { return get(); }
|
||||
Pointer *get() const { return m_data; }
|
||||
void reset(Pointer *p) { *this = p; }
|
||||
/// conversion to "bool"
|
||||
operator bool_type() const { return m_data ? &RefCount::m_data : 0; }
|
||||
|
||||
|
|
Loading…
Reference in a new issue