Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77065 - trunk/boost/functional/overloaded_function/detail
From: lorcaminiti_at_[hidden]
Date: 2012-02-18 10:20:39


Author: lcaminiti
Date: 2012-02-18 10:20:39 EST (Sat, 18 Feb 2012)
New Revision: 77065
URL: http://svn.boost.org/trac/boost/changeset/77065

Log:
Remove a set of extra parenthesis in getting a member function pointer that were not needed and did not compile on clang.
Text files modified:
   trunk/boost/functional/overloaded_function/detail/function_type.hpp | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: trunk/boost/functional/overloaded_function/detail/function_type.hpp
==============================================================================
--- trunk/boost/functional/overloaded_function/detail/function_type.hpp (original)
+++ trunk/boost/functional/overloaded_function/detail/function_type.hpp 2012-02-18 10:20:39 EST (Sat, 18 Feb 2012)
@@ -29,7 +29,8 @@
 // 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<


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk