Georg Baum <[EMAIL PROTECTED]> writes:
| Example:
|
| class Foo {
| void Fun(Foo const &);
| };
|
| class Bar {
| void DoSomething();
| void Fun(Foo const &);
| };
|
|
| Bar::DoSomething()
| {
| std::vector<Foo> x;
| for_each(x.begin(), x.end(), std::mem_fun_ref(&Foo::Fun));
I guess this should have been &Bar::DoSomething?
(Except that that wouldn't work either..., unless you also had a vector
of Bar's)
&Foo:Fun requires two parameters one for the object instantiantion the
other for the func argument.
| for_each(x.begin(), x.end(), boost::bind(&Bar::Fun, this, _1));
| }
|
| The case we have here is the second. Clear now?
Tja...
--
Lgb