diff --git a/include/boost/functional/overloaded_function/detail/function_type.hpp b/include/boost/functional/overloaded_function/detail/function_type.hpp index 31f83a7..4494206 100644 --- a/include/boost/functional/overloaded_function/detail/function_type.hpp +++ b/include/boost/functional/overloaded_function/detail/function_type.hpp @@ -29,7 +29,8 @@ namespace boost { namespace overloaded_function_detail { // It does not assume F typedef result_type, arg1_type, ... but needs typeof. template class functor_type { - typedef BOOST_TYPEOF_TPL(&(F::operator())) call_ptr; + // NOTE: clang does not accept extra parenthesis `&(...)`. + typedef BOOST_TYPEOF_TPL(&F::operator()) call_ptr; public: typedef typename boost::function_types::function_type<