12 Aug
2002
12 Aug
'02
10:23 p.m.
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)); } How can I get this to work? I always get an error when compiling the last line stating "..boost\function\function_template.hpp(127) : error C2660: '()' : Funktion akzeptiert keine 0 Parameter" Ah, the compiler is VisC++ 6. Thanks for any help Ali