diff --git a/test/function_ptr_from_tpl.cpp b/test/function_ptr_from_tpl.cpp index 2f4db2d..28986d1 100755 --- a/test/function_ptr_from_tpl.cpp +++ b/test/function_ptr_from_tpl.cpp @@ -6,9 +6,11 @@ void f() {} template -class x +struct tpl { - BOOST_STATIC_ASSERT(( - boost::is_same::value - )); + typedef BOOST_TYPEOF_TPL(&f) type; }; + +typedef void(*fun_type)(); + +BOOST_STATIC_ASSERT((boost::is_same::type, fun_type>::value));