Re: [Boost-users] [function] How do you bind two boost::functionobjects together?

I think what you're looking for is composition of functions? i.e. g o f (x) => g(f(x))? The right nomenclature might help... What it seems you want to do is to generate a function that does this: bool the_result(int i) { return some_function(convert_to_char(int)); } Is that right? I know you can curry with boost function + lambda but I haven't tried composition myself (though it should be possible!)

Sorry for the TP. Boost bind and boost lambda bind aren't 100% compatible yet. If you are delaying argument evaluation using _[0-9] then I think you *need* to use lambda bind. -----Original Message----- From: boost-users-bounces@lists.boost.org on behalf of Jason House Sent: Sun 10/1/2006 8:52 PM To: boost-users@lists.boost.org Subject: Re: [Boost-users] [function] How do you bind twoboost::functionobjects together? Sohail Somani wrote:
Yes, you're right. It seems that my mistake was possibly that I was using boost::lambda::bind instead of boost::bind. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Jason House
-
Sohail Somani