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