I'm attempting to bind a function using luabind currently, and I'm having an issue. It seems to have issues with binding a class member function that's templated.
i.e.:
class MyClass
{
public:
template<class MySpecialization>
void Foo() {} ;
};
int main(void)
{
module(L)
[
class_< MyClass >("MyClass").def("Foo", &MyClass::Foo);
]
}
This gives something like:
Quote
error C2780: 'luabind::class_<T> &luabind::class_<T>::def(luabind::detail::operator_<Derived>)' : expects 1 arguments - 2 provided
Which I find odd.. It's obviously having trouble with the template.. Anyone know what I'm doing wrong?
Cheers,
-e-












