[Boost-bugs] [Boost C++ Libraries] #5229: not a constant reference to a const object (boost::lamda::bind)

Subject: [Boost-bugs] [Boost C++ Libraries] #5229: not a constant reference to a const object (boost::lamda::bind)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-02-24 21:04:46


#5229: not a constant reference to a const object (boost::lamda::bind)
------------------------------+---------------------------------------------
 Reporter: anonymous | Owner: no-maintainer
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: lambda
  Version: Boost 1.45.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------------------------
 can't create
 {{{
 std::string&
 }}}
  from
 {{{
 const std::string&
 }}}

 example:

 {{{
 struct A { std::string name; };

 std::vector<A> v = ...
 std::string to_find = ...
 iterator_t found = find_if(v.cbegin(), v.cend(), to_find == bind(&A::name,
 _1));
 }}}

 v.cbegin(), v.cend() - const_iterator's

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5229>
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