mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Document and improve is_functor
This commit is contained in:
parent
446e70be53
commit
898a5a4524
4 changed files with 18 additions and 19 deletions
|
|
@ -28,12 +28,12 @@ namespace
|
|||
template< typename T >
|
||||
void is_functor( T )
|
||||
{
|
||||
static_assert( mock::detail::is_functor< T, int >::value, "Should be functor");
|
||||
static_assert( mock::detail::is_functor< T, int >::value, "Should be a functor taking an int");
|
||||
}
|
||||
template< typename T >
|
||||
void is_not_functor( T )
|
||||
{
|
||||
static_assert( !mock::detail::is_functor< T, int >::value, "Should not be a functor" );
|
||||
static_assert( !mock::detail::is_functor< T, int >::value, "Should not be a functor taking an int" );
|
||||
}
|
||||
|
||||
void f0() {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue