Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4967: apply_visitor_delayed_t 's operator() is not const correct
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-12-08 16:39:39
#4967: apply_visitor_delayed_t 's operator() is not const correct
-----------------------------------+----------------------------------------
Reporter: zhuo.qiang@⦠| Owner: ebf
Type: Patches | Status: new
Milestone: To Be Determined | Component: variant
Version: Boost 1.45.0 | Severity: Problem
Resolution: | Keywords:
-----------------------------------+----------------------------------------
Comment (by anonymous):
The second code snipper should be this:
{{{
#!c++
times_2_t times_2;
function<int(V const&)> f = apply_visitor(times_2);
int const result = boost::accumulate(
all | boost::adaptors::transformed(f), 0);
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4967#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:05 UTC