Boost C++ Libraries: Ticket #5961: ptr_container supports comparison of iterators of different types https://svn.boost.org/trac10/ticket/5961 <p> The void_ptr_iterator, which handles much of the ptr_container iterator functionality, oddly supports comparison operations between iterators of differing types. </p> <p> For example: </p> <pre class="wiki"> ptr_vector&lt;int&gt; vi; ptr_vector&lt;string&gt; vs; bool eq = (vi.begin() == vs.begin()); </pre><p> The affected operators are: == != &lt; &lt;= &gt; &gt;= </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5961 Trac 1.4.3