Boost C++ Libraries: Ticket #9760: coroutine's iterators don't have == operator with const qualifier https://svn.boost.org/trac10/ticket/9760 <p> coroutine's iterators don't have operator== with const qualifier. Therefore, the following code fails to compile: </p> <pre class="wiki">#include &lt;boost/coroutine/v2/coroutine.hpp&gt; #include &lt;boost/range/adaptor/filtered.hpp&gt; #include &lt;boost/range/iterator_range.hpp&gt; #include &lt;iostream&gt; int main() { using namespace boost; coroutines::coroutine&lt;int&gt;::pull_type c([](coroutines::coroutine&lt;int&gt;::push_type&amp; yield) { for (int i = 0; i &lt; 5; ++i) { yield(i); } }); auto crange = make_iterator_range(begin(c), end(c)); for (auto n : crange | adaptors::filtered([](int n){return n % 2 == 0;})) // the filtered adaptor needs const operator==. { std::cout &lt;&lt; n &lt;&lt; std::endl; } } </pre><p> In addition, the iterators don't also have const operator!=. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9760 Trac 1.4.3 olli Sun, 09 Mar 2014 14:02:30 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/9760#comment:1 https://svn.boost.org/trac10/ticket/9760#comment:1 <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> <p> fixed, thx </p> Ticket