Boost logo

Boost Users :

From: James Sutherland (James.Sutherland_at_[hidden])
Date: 2008-07-07 16:49:11


Correction:

int main()
{
  boost::function<int(int)> f;
  X x;
  f = std::bind1st( std::mem_fun(&X::foo), &x);
  std::cout << f(5) << std::endl;
}


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