5
Sto cercando di esportare i campi statici dalla classe:luabind e campi statici
class Foo
{
const static int Var;
};
// luabind module:
.def_readonly("Var", &Foo::Var);
// I've also tried
.def_readonly("Var", Foo::Var);
error: no matching function for call to ‘luabind::class_<Foo>::def_readonly(const char [6], const Foo&)’ note: template<class C, class D> luabind::class_& luabind::class_::def_readwrite(const char*, D C::*)
Che cosa ho mancato in su?
Ok, grazie. Ho perso il fatto che questo non è solo per le funzioni statiche. – Ockonal