Re: [Boost-bugs] [Boost C++ Libraries] #4427: for_each does not take a non-const Function object

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: 2012-06-13 12:45:27


#4427: for_each does not take a non-const Function object
--------------------------------+-------------------------------------------
  Reporter: chetant@… | Owner: djowel
      Type: Bugs | Status: closed
 Milestone: Boost 1.44.0 | Component: fusion
   Version: Boost 1.43.0 | Severity: Problem
Resolution: invalid | Keywords: for_each
--------------------------------+-------------------------------------------

Comment (by anonymous):

 Replying to [comment:1 anonymous]:
> not a bug.
> to modify data in F, use a function object that holds a reference to
 mutable data.

 Really? How is this solution better than accepting a non-const version of
 the operator?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4427#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:09 UTC