diff options
Diffstat (limited to 'include/tools/weakbase.h')
-rw-r--r-- | include/tools/weakbase.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/tools/weakbase.h b/include/tools/weakbase.h index e614efcc4111..0f9a500bb55b 100644 --- a/include/tools/weakbase.h +++ b/include/tools/weakbase.h @@ -88,6 +88,9 @@ public: /** returns true if the reference object is not null and still alive */ inline bool is() const; + /** returns true if the reference object is not null and still alive */ + operator bool() const { return is(); } + /** returns the pointer to the reference object or null */ inline reference_type * get() const; |