Boost C++ Libraries: Ticket #10368: Boost.Ref: undocumented breaking change: void cref(const T&&) = delete https://svn.boost.org/trac10/ticket/10368 <p> Boost 1.56.0 adds 'template &lt;class T&gt; void cref(T const&amp;&amp;) = delete' which is an undocumented addition and breaks code like: </p> <p> std::find_if(..., ..., boost::cref( some_predicate(...) ) ); </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10368 Trac 1.4.3 viboes Sat, 30 Aug 2014 12:55:03 GMT component changed; owner set https://svn.boost.org/trac10/ticket/10368#comment:1 https://svn.boost.org/trac10/ticket/10368#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Peter Dimov</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">bind</span> </li> </ul> Ticket Peter Dimov Sat, 30 Aug 2014 17:44:11 GMT <link>https://svn.boost.org/trac10/ticket/10368#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10368#comment:2</guid> <description> <p> It's true that this change breaks some valid code. It has been added to match C++11, which does contain this overload. It's possible that this wasn't the right decision, but C++11's std::cref would not work with the above code, so I'm not sure what we need to do here. </p> </description> <category>Ticket</category> </item> </channel> </rss>