Closed PhilCK closed 8 years ago
Is it possible to bind a template member function?
I'm trying to bind a varient class.
I've tried
m_lua.new_usertype<Test::Param>( "Param", "get_bool", &Test::Param::get<bool> );
That produces error, expecting 3 arguments
expecting 3 arguments
and (although I didn't have hope in this one.)
m_lua.new_usertype<Test::Param>( "Param", "get_bool", static_cast<bool (Test::Param::*) ()>( &Test::Param::get<bool> ) );
This should work, but you should take a look at a far newer (and maintained) version of Sol : https://github.com/ThePhD/sol2
oops too many tabs posted in wrong repo.
Is it possible to bind a template member function?
I'm trying to bind a varient class.
I've tried
That produces error,
expecting 3 arguments
and (although I didn't have hope in this one.)