$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Jason House (jasonhouse_at_[hidden])
Date: 2006-09-30 13:01:15
I'm trying to convert the input argument to a function object using a 
small helper function object.  The code below looks relatively simple, 
but it doesn't seem to compile.  Any ideas what could be wrong?
template<typename inputType, typename outputType>
boost::function<outputType (int)>
convert(boost::function<outputType (inputType)> &object_to_convert){
   boost::function<intputType (int)> input_converter(...);
   // The following fails to compile
   boost::function<outputType (int)> converted_function
     (boost::lambda::bind(object_to_convert, input_converter));
   return converted_function
}