Boost C++ Libraries: Ticket #10497: Cannot assign filter_range to any_range (gcc only) https://svn.boost.org/trac10/ticket/10497 <p> When trying to assign a filter_range to a suitable any_range, the attached source code fails to compile under g++ (v4.8.3), but does compile under clang++ (v3.4). </p> <p> From the error messages I get, it seems that the error triggers when trying to use the default constructor of filter_range with Predicate = lambda and an Iterator = non-default-constructible iterator. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10497 Trac 1.4.3 Alex Puchades <alex94puchades+dev@…> Fri, 12 Sep 2014 11:52:46 GMT attachment set https://svn.boost.org/trac10/ticket/10497 https://svn.boost.org/trac10/ticket/10497 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">bug_any_range.cpp</span> </li> </ul> <p> The offending code (compile with C++11 support) </p> Ticket Neil Groves Mon, 02 Feb 2015 01:41:12 GMT <link>https://svn.boost.org/trac10/ticket/10497#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10497#comment:1</guid> <description> <p> The defect is in the test code. A Forward Iterator, as defined by the C++ standard, must be default constructible. </p> </description> <category>Ticket</category> </item> </channel> </rss>