Hi Robert, > To go over the hurdle I have gone ahead and changed the affected > methods to return RefMatrix* rather than RefMatrix&. So CullStack now > works fine in the wrappers, but it did require a number of changes to > the OSG. Using a pointer rather than a & is no bad thing in this > instance so I'm happy with this change.
Ok, thanks. That resolves the immediate problem. > Being able to to properly hanve T& and const T& is important for the > wrappers though, as this problem has arisen a number of times, and > converting to * isn't alway approrpriate. There is also a performance > penalty involved in constructor objects you don't need to construct. There's also an object slicing problem if the function returns a subclass of the declared return type. I'll see if I can't resolve the reference-return issue with the change I mentioned. -Mike _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
