[Boost-bugs] [Boost C++ Libraries] #6765: boost::mem_fn not entirely compatible with std::mem_fn

Subject: [Boost-bugs] [Boost C++ Libraries] #6765: boost::mem_fn not entirely compatible with std::mem_fn
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-04-05 10:37:15


#6765: boost::mem_fn not entirely compatible with std::mem_fn
-------------------------------------------------+--------------------------
 Reporter: philipp.moeller@… | Owner: pdimov
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: bind
  Version: Boost 1.49.0 | Severity: Problem
 Keywords: |
-------------------------------------------------+--------------------------
 boost::mem_fn only supports calling member functions through proxies when
 the proxy type has a matching get_pointer function. This is not necessary
 for std::mem_fn (20.8.10) as the second or fourth item of INVOKE (20.8.2)
 should apply in such a case.

 A solution would be to change _mfi::dm::call(U const& u, void const*) to
 simply call (*u).*f_

 I couldn't find any documentation why exactly get_pointer is used and
 don't know which implications this might have, but it would be a nice to
 have feature (and would also allow mem_fn to work on iterators which are
 often used as handles).

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6765>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC