-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Jason House
I want the result of the bound expression to have one input parameter that would be decided later. For instance:
bool some_function(char x); boost::function
f = convert(some_function_object) std::cout << f(32);
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!)