Add: const operator->() for ScirptObjectRef.

This commit is contained in:
Peter Nelson 2024-11-19 18:04:30 +00:00 committed by Peter Nelson
parent 26ae50baf9
commit d875ac8947

View File

@ -473,6 +473,15 @@ public:
{
return this->data;
}
/**
* The arrow operator on this reference returns the reference counted object.
* @return Pointer to the underlying object.
*/
const T *operator->() const
{
return this->data;
}
};
#endif /* SCRIPT_OBJECT_HPP */