reference parameter in luabind

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

reference parameter in luabind

sunman
This post has NOT been accepted by the mailing list yet.
// hi, i met one problem as following:

void f1(int& val)
{
    ++val;
}

module(L)
[
    def("f1", &f1, out_value(_1))
];

compile with error:
error C2352: 'luabind::native_converter_base<T>::match' : illegal call of non-static member function

///////////
how to solve it?
thanks a lot