I'm trying to export static fields from class:
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::*)
What have I missed up?