mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-03-29 07:27:13 +01:00
Implicit conversion to boolean of smart Sqrat pointers so they can be used in conditional expressions.
This commit is contained in:
parent
bc1e7dbde6
commit
cf00eaa1b4
@ -763,6 +763,15 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
/// Checks if there is an associated managed object
|
||||
///
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
bool operator bool () const
|
||||
{
|
||||
return m_Ptr != NULL;
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
/// Checks if there is NOT an associated managed object
|
||||
///
|
||||
|
Loading…
x
Reference in New Issue
Block a user