Add operator bool() and test boolean checks
This commit is contained in:
1 parent
be2da870bb
commit
ffe8433d55
2 files changed
+14
No files matched your search
@@ -99,6 +99,11 @@ public:
|
||||
{
|
||||
return !ptr;
|
||||
}
|
||||
|
||||
operator bool() const
|
||||
{
|
||||
return ptr != nullptr;
|
||||
}
|
||||
};
|
||||
|
||||
#define rcp_managed_root(classname) \
|
||||
|
||||
Reference in new issue
Block a user