From c4824e0bd68dd4c22acd3ff4e7459fe8ccf7ef7c Mon Sep 17 00:00:00 2001 From: Lorenzo Caminiti Date: Sat, 18 Feb 2012 15:20:39 +0000 Subject: [PATCH] Remove a set of extra parenthesis in getting a member function pointer that were not needed and did not compile on clang. [SVN r77065] --- .../functional/overloaded_function/detail/function_type.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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<