
9 Oct
2012
9 Oct
'12
6:52 a.m.
OlcStringEntry(const std::string &name, FLAG flag, StringGetter& get, StringSetter& set);
Do you really want to pass getter/setter by (non-const) reference? If so, you can't pass binders, you should first create boost::function objects and pass them: StringGetter getter = bind(&BaseObject::GetName, this); OlcStringEntry(..., getter,...); Of course, pay attention to the getter/setter objects lifetime.