Boost C++ Libraries: Ticket #10098: Ugly warning about sign/unsigned mismatch in comparison https://svn.boost.org/trac10/ticket/10098 <p> operator[] and operator() in iterator_range_core take difference_type and then compare it to size type. To fix the warning either those operators should take size_type or you should cast at like ((size_type)at) in the comparison. </p> <p> I am attaching a patch with cast option in it since that is less likely to impact things calling these operators. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10098 Trac 1.4.3 Joseph Southwell <joseph@…> Fri, 06 Jun 2014 13:07:05 GMT attachment set https://svn.boost.org/trac10/ticket/10098 https://svn.boost.org/trac10/ticket/10098 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">sign_mismatch.patch</span> </li> </ul> <p> patch with one way to fix this warning. </p> Ticket Joseph Southwell <joseph@…> Fri, 06 Jun 2014 13:10:21 GMT <link>https://svn.boost.org/trac10/ticket/10098#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10098#comment:1</guid> <description> <p> Oh, I should mention that the warning is pages long on visual studio. I am betting it is a one liner on whatever compiler you are using most. </p> <p> Maybe you have a better way to fix this. I don't know. I am just trying to be helpful. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Neil Groves</dc:creator> <pubDate>Fri, 06 Jun 2014 18:48:21 GMT</pubDate> <title>status, milestone changed https://svn.boost.org/trac10/ticket/10098#comment:2 https://svn.boost.org/trac10/ticket/10098#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.56.0</span> </li> </ul> <p> Yep I'll fix this in the next couple of days. I won't use a C style cast though. I'll update the trac ticket once I am done. It'll be put onto the develop branch first while I wait for tests to cycle before promotion to master. </p> Ticket Neil Groves Sat, 07 Jun 2014 16:20:24 GMT <link>https://svn.boost.org/trac10/ticket/10098#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10098#comment:3</guid> <description> <p> Fixed on the develop branch. Waiting for test results before merging to master. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Neil Groves</dc:creator> <pubDate>Sun, 08 Jun 2014 22:56:15 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/10098#comment:4 https://svn.boost.org/trac10/ticket/10098#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Now merged to master ready for release 1.56 </p> Ticket