Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4577: invoke() uses invalid boost::result_of<>
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-01-05 14:57:39
#4577: invoke() uses invalid boost::result_of<>
--------------------------------------+-------------------------
Reporter: anonymous | Owner: t_schwinger
Type: Bugs | Status: new
Milestone: To Be Determined | Component: fusion
Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords:
--------------------------------------+-------------------------
Comment (by Kohei Takahashi <flast@â¦>):
I think that original behaviour is eligible in such situation.
In (1), as you know, `vec[n]` is `const lvalue reference` of `int` since
`vec` is `const lvalue` of `vector`.
However, in (2), the function `t` returns `prvalue` of `int`: means type
of `f(vec[n])` is '''just''' `int`.
So, I'm against the suggestion.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4577#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:17 UTC