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 &lt;boost/range/any_range.hpp&gt; #include &lt;memory&gt; #include &lt;vector&gt; struct A {}; int main() { std::vector&lt;std::shared_ptr&lt;A&gt; &gt; v; boost::any_range&lt;std::shared_ptr&lt;const A&gt;, boost::forward_traversal_tag, std::shared_ptr&lt;const A&gt;, std::ptrdiff_t&gt; r(v); } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10360 Trac 1.4.3 anonymous Fri, 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> Ticket Paul Omta <p.omta@…> Fri, 19 Dec 2014 12:47:57 GMT cc 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