Remove a set of extra parenthesis in getting a member function pointer that were not needed and did not compile on clang.

[SVN r77065]
This commit is contained in:
Lorenzo Caminiti
2012-02-18 15:20:39 +00:00
parent e379125fea
commit c4824e0bd6

View File

@@ -29,7 +29,8 @@ namespace boost { namespace overloaded_function_detail {
// It does not assume F typedef result_type, arg1_type, ... but needs typeof.
template<typename F>
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<