mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Get rid of BOOST_IDENTITY_TYPE
This commit is contained in:
parent
a426e02759
commit
52d21a86af
3 changed files with 32 additions and 18 deletions
|
|
@ -60,6 +60,16 @@ namespace detail
|
|||
|
||||
template< typename Signature, int n >
|
||||
using parameter = tuple_element< n, typename parameter_types<Signature>::type >;
|
||||
|
||||
template<typename T>
|
||||
struct parameter_type;
|
||||
template<typename T, typename U>
|
||||
struct parameter_type<T(U)>
|
||||
{
|
||||
using type = U;
|
||||
};
|
||||
template<typename T>
|
||||
using parameter_type_t = typename parameter_type<T>::type;
|
||||
}
|
||||
} // mock
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue