5
Я пытаюсь экспортировать статические поля из класса:Luabind и статические поля
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::*)
Что я пропустил вверх?
Хорошо, спасибо. Я пропустил, что это не только для статических функций. – Ockonal