Boost C++ Libraries: Ticket #10360: Since 1.56, any_range use static cast of reference instead of implicit conversion
https://svn.boost.org/trac10/ticket/10360
<p>
Since 1.56, when dereferencing, any_range tries to use static cast of reference instead of implicit conversion like in 1.55.
</p>
<p>
Here is an example that works with 1.55 but fails to compile with 1.56.
</p>
<pre class="wiki">#include <boost/range/any_range.hpp>
#include <memory>
#include <vector>
struct A {};
int main() {
std::vector<std::shared_ptr<A> > v;
boost::any_range<std::shared_ptr<const A>,
boost::forward_traversal_tag,
std::shared_ptr<const A>,
std::ptrdiff_t> r(v);
}
</pre>en-usBoost C++ Libraries/htdocs/site/boost.png
https://svn.boost.org/trac10/ticket/10360
Trac 1.4.3anonymousFri, 15 Aug 2014 14:02:33 GMT
<link>https://svn.boost.org/trac10/ticket/10360#comment:1 </link>
<guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10360#comment:1</guid>
<description>
<p>
A work-around is to go through "boost::adaptors::transform" to do the conversion.
</p>
</description>
<category>Ticket</category>
</item>
<item>
<dc:creator>Neil Groves</dc:creator>
<pubDate>Mon, 25 Aug 2014 21:10:52 GMT</pubDate>
<title>status changed
https://svn.boost.org/trac10/ticket/10360#comment:2
https://svn.boost.org/trac10/ticket/10360#comment:2
<ul>
<li><strong>status</strong>
<span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span>
</li>
</ul>
<p>
Drat, this is an unanticipated side-effect of a change to help other users with user-defined types.
</p>
<p>
I shall look at this during this week.
</p>
TicketPaul Omta <p.omta@…>Fri, 19 Dec 2014 12:47:57 GMTcc set
https://svn.boost.org/trac10/ticket/10360#comment:3
https://svn.boost.org/trac10/ticket/10360#comment:3
<ul>
<li><strong>cc</strong>
<span class="trac-author">p.omta@…</span> added
</li>
</ul>
Ticket