mirror of
https://github.com/boostorg/functional.git
synced 2025-08-01 13:34:30 +02:00
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:
@@ -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<
|
||||
|
Reference in New Issue
Block a user