Boost logo

Boost Users :

From: David Morrison (dave_at_[hidden])
Date: 2005-03-22 16:21:28


Peter Dimov wrote:

> Change this to boost::mem_fn( f )( a1, a2, a3 ) and you'll be there.

Yep, that's much cleaner, thanks.

I was hoping that there'd be some clever way to use type_traits to
magically select the right way of invoking the function f. That way,
one could have a (possibly enhanced version of?) apply.hpp so that code
to invoke apply on a set of member and non-member functions would look
the same.

Gives me an excuse to dig into traits, I suppose.

Dave


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