Matthias Kaeppler wrote:
Are those two function templates also defined in call_traits.hpp? I can't find them in the library docs.
type_traits.hpp -- found it :)
Alright, based on your valuable input, I have come up with this (those
template meta programming facilities of boost are /amazing/!):
template< typename Operation >
class indirecter_unary
{
typedef typename boost::unary_traits<Operation>::argument_type arg_type;
typedef typename boost::unary_traits<Operation>::param_type param_type;
typedef typename boost::unary_traits<Operation>::result_type result_type;
typedef typename boost::unary_traits<Operation>::function_type
function_type;
typedef typename boost::remove_reference