13 Aug
2002
13 Aug
'02
1:15 a.m.
"Albrecht Fritzsche"
Consider the following code:
class Publisher { typedef boost::function<void> Function; public: void SetChecker(const Function& Callback){ } };
class Manager { public: Manager(); private: void Check() {} };
Manager::Manager() { Publisher d; d.SetChecker(std::mem_fun(&Manager::Check));
try: d.SetChecker(boost::bind(&Manager::Check,this));
}