$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Albrecht Fritzsche (albrecht.fritzsche_at_[hidden])
Date: 2002-08-12 17:23:04
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