1
0
Fork 0

Add: const operator->() for ScirptObjectRef.

pull/13118/head
Peter Nelson 2024-11-19 18:04:30 +00:00 committed by Peter Nelson
parent 26ae50baf9
commit d875ac8947
1 changed files with 9 additions and 0 deletions

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 */