Document and improve is_functor

This commit is contained in:
Alexander Grund 2020-07-12 13:04:14 +02:00
parent 446e70be53
commit 898a5a4524
No known key found for this signature in database
GPG key ID: AA48A0760367A42B
4 changed files with 18 additions and 19 deletions

View file

@ -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() {}