|
Boost Users : |
From: Robert Bielik (robert.bielik_at_[hidden])
Date: 2007-11-28 09:07:09
Martin Fisher skrev:
> then in main...
> vector<int> v; // filled with some ints
> for_each(v.begin(), v.end(), boost::bind(&X::t, _1, 4)); // or _1, 4
should be boost::bind(&X::t, <pointer to an instance of X>, _1, 4)) as X::t
isn't static.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net