Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4427: for_each does not take a non-const Function object
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-05-24 18:03:36
#4427: for_each does not take a non-const Function object
--------------------------------+-------------------------------------------
Reporter: chetant@⦠| Owner: djowel
Type: Bugs | Status: reopened
Milestone: Boost 1.44.0 | Component: fusion
Version: Boost 1.43.0 | Severity: Problem
Resolution: | Keywords: for_each
--------------------------------+-------------------------------------------
Comment (by anonymous):
The documentation does indicate a function object "F f", but the
implementation (in 1.53) takes "F const&". So if no copy of the function
object is made (and I can't see why it should), it seems:
1. The documentation should be corrected.
2. Given that no copy is necessary, why not accept a non-const "F& f"
argument?
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4427#comment:7> 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:13 UTC