Boost C++ Libraries: Ticket #5137: any_range : boost/range/concepts.hpp is missing https://svn.boost.org/trac10/ticket/5137 <pre class="wiki">#include &lt;boost/range/concepts.hpp&gt; </pre><p> needs to boost/range/any_range.hpp. tried code: </p> <pre class="wiki">#include &lt;vector&gt; #include &lt;boost/assign/list_of.hpp&gt; //#include &lt;boost/range/concepts.hpp&gt; #include &lt;boost/range/any_range.hpp&gt; // error! concept is nothing! #include &lt;boost/range/adaptor/filtered.hpp&gt; #include &lt;boost/range/algorithm/for_each.hpp&gt; bool is_even(int x) { return x % 2 == 0; } void disp(int x) { std::cout &lt;&lt; x &lt;&lt; std::endl; } int main() { const std::vector&lt;int&gt; v = boost::assign::list_of(1)(2)(3)(4)(5); boost::any_range&lt;int, boost::forward_traversal_tag, const int&amp;, ptrdiff_t&gt; r = v | boost::adaptors::filtered(is_even); boost::for_each(r, disp); } </pre><p> and, any_range template parameter is very many. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5137 Trac 1.4.3 Akira Takahashi <faithandbrave@…> Mon, 31 Jan 2011 09:37:49 GMT <link>https://svn.boost.org/trac10/ticket/5137#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5137#comment:1</guid> <description> <p> sorry, compile successful in rev.68177. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Neil Groves</dc:creator> <pubDate>Thu, 17 Mar 2011 00:00:19 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5137#comment:2 https://svn.boost.org/trac10/ticket/5137#comment:2 <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> Ticket