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 11:55:29
#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 giecrilj@â¦):
It is unwise for `mem_fn` to define `result_type` at all. The type of the
member need not even be copyable. Instead, it should be arranged so that
* `boost:: result_of < F (U &) >:: type` be `type_of_the_member &`
* `boost:: result_of < F (U const &) >:: type` be `type_of_the_member
const &`
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6278#comment:1> 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