mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-07-22 16:57:12 +02:00
Implicit conversion to boolean of smart Sqrat pointers so they can be used in conditional expressions.
This commit is contained in:
@@ -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
|
/// Checks if there is NOT an associated managed object
|
||||||
///
|
///
|
||||||
|
Reference in New Issue
Block a user