Boost C++ Libraries: Ticket #5229: not a constant reference to a const object (boost::lamda::bind) https://svn.boost.org/trac10/ticket/5229 <p> can't create </p> <pre class="wiki">std::string&amp; </pre><blockquote> <p> from </p> <pre class="wiki">const std::string&amp; </pre></blockquote> <p> example: </p> <pre class="wiki">struct A { std::string name; }; std::vector&lt;A&gt; v = ... std::string to_find = ... iterator_t found = find_if(v.cbegin(), v.cend(), to_find == bind(&amp;A::name, _1)); </pre><p> v.cbegin(), v.cend() - const_iterator's </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5229 Trac 1.4.3 Steven Watanabe Sat, 16 Feb 2013 19:51:02 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5229#comment:1 https://svn.boost.org/trac10/ticket/5229#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> This was fixed in <a class="changeset" href="https://svn.boost.org/trac10/changeset/67640" title="Fix return type deduction for pointers to data members. Fixes #4962. ...">[67640]</a>. </p> Ticket