forked from boostorg/type_traits
Commit unary_traits/binary_traits compatibility patch by Thomas Witt
[SVN r20712]
This commit is contained in:
@ -37,6 +37,7 @@ struct function_traits_helper<R (*)(T1)>
|
||||
BOOST_STATIC_CONSTANT(int, arity = 1);
|
||||
typedef R result_type;
|
||||
typedef T1 arg1_type;
|
||||
typedef T1 argument_type;
|
||||
};
|
||||
|
||||
template<typename R, typename T1, typename T2>
|
||||
@ -46,6 +47,8 @@ struct function_traits_helper<R (*)(T1, T2)>
|
||||
typedef R result_type;
|
||||
typedef T1 arg1_type;
|
||||
typedef T2 arg2_type;
|
||||
typedef T1 first_argument_type;
|
||||
typedef T2 second_argument_type;
|
||||
};
|
||||
|
||||
template<typename R, typename T1, typename T2, typename T3>
|
||||
|
Reference in New Issue
Block a user