diff --git a/test/detail/test_function.cpp b/test/detail/test_function.cpp index 70ab4fc..fa24012 100644 --- a/test/detail/test_function.cpp +++ b/test/detail/test_function.cpp @@ -13,6 +13,8 @@ #include #define BOOST_LIB_NAME boost_unit_test_framework #include +#include +#include #include #include @@ -21,6 +23,15 @@ namespace { boost::function< void() > static_f; + + BOOST_MPL_ASSERT(( + boost::is_same< void, boost::result_of< mock::detail::function< void() >() >::type > )); + BOOST_MPL_ASSERT(( + boost::is_same< int, boost::result_of< mock::detail::function< int() >() >::type > )); + BOOST_MPL_ASSERT(( + boost::is_same< void, boost::result_of< mock::detail::function< void( float ) >( float ) >::type > )); + BOOST_MPL_ASSERT(( + boost::is_same< int, boost::result_of< mock::detail::function< int( float ) >( float ) >::type > )); } // functor