Re: [Boost-bugs] [Boost C++ Libraries] #6278: mem_fn has a different result_type

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6278: mem_fn has a different result_type
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-16 13:52:55


#6278: mem_fn has a different result_type
------------------------------------+---------------------------------------
  Reporter: giecrilj@… | Owner: pdimov
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: bind
   Version: Boost 1.48.0 | Severity: Problem
Resolution: | Keywords:
------------------------------------+---------------------------------------

Comment (by pdimov):

 It's true that result_type is defined as a const reference instead of a
 plain type, but what does this have to do with whether the type is
 copyable or not? result_of<F(U&)> is not necessarily M&, by the way. U can
 be a pointer or a smart pointer to a const pointee. What specific problem
 are you having?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6278#comment:2>
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:08 UTC