LuaBind class with operators

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
Post Reply
Tedi
Posts: 18
Joined: Sun Nov 27, 2011 3:42 pm
Contact:

LuaBind class with operators

Post 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...
Post Reply