Boost logo

Boost :

From: Mark Rodgers (mark.rodgers_at_[hidden])
Date: 2000-05-27 23:15:56


From: Darin Adler <darin_at_[hidden]
> Is it possible, using traits, to make an implementation that would
> work with a function and not just a function object? If so, that's
> a useful improvement.

It should work with my function object traits classes. My intention
is to do precisely that with bind1st, etc.

  void f(int, int);
  boost::bind1st(f, 3);

instead of

  std::bind1st(std::ptr_fun(f), 3);

See functional in the vault. I provide unary_traits and binary_traits.

Mark


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk