Page 1 of 1

LuaBind class with operators

Posted: Tue Feb 26, 2013 2:21 pm
by Tedi
Hello,

I have luabind and want to bind a class's operator

Class fuction member
Vector3 operator+ ( const Vector3& rhs );

Binding C++ code
.def( luabind::self + luabind::other<const core::Vector3&>() )

It does not work...

Anybody knows what I do wrong? Thanks...