You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am able to return pointers to objects from C++ through dukglue, but I can't seem to return references:
//this function registers and works fine
// m_position is type Vector3
Vector3* Robot::pos()
{
return &m_position;
}
//this fails to compile if I try to register
Vector3& Robot::position()
{
return m_position;
}
I am able to return pointers to objects from C++ through dukglue, but I can't seem to return references:
I register like this:
and get these compile errors (below), which seems to indicate that references for my Vector3 class are not supported.
Is this a bug, a limitation of dukglue, or am I just not registering correctly?
Thanks.
The text was updated successfully, but these errors were encountered: