Boost C++ Libraries: Ticket #4537: suggestion to remove warning of comparison about singned and unsigned https://svn.boost.org/trac10/ticket/4537 <p> I haven't got into mpl to actually understand, what the lines are doing I suggest to correct, they actually don't make sense to me. However, they are causing a long template warning in the context of using boost::text_archive about comparing unsigned with signed which causes eclipse to interpret it as an error for unknown reasons. </p> <p> so I suggest the following patch (the revision numbers are those of my own repository): </p> <p> Index: boost/mpl/print.hpp =================================================================== --- print.hpp (revision 1772) +++ print.hpp (revision 1773) @@ -57,7 +57,7 @@ </p> <blockquote> <p> # if defined(<span class="underline">EDG_VERSION</span>) </p> <blockquote> <p> aux::dependent_unsigned&lt;T&gt;::value &gt; -1 </p> </blockquote> <p> # else </p> </blockquote> <ul><li> sizeof(T) &gt; -1 </li></ul><p> + sizeof(T) &gt;= 0 </p> <blockquote> <p> # endif </p> <blockquote> <p> }; </p> </blockquote> <p> #endif </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4537 Trac 1.4.3 Philipp Huber <phu@…> Fri, 13 Aug 2010 05:04:08 GMT keywords set https://svn.boost.org/trac10/ticket/4537#comment:1 https://svn.boost.org/trac10/ticket/4537#comment:1 <ul> <li><strong>keywords</strong> warning signed unsigned added </li> </ul> Ticket Steven Watanabe Fri, 13 Aug 2010 18:08:28 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4537#comment:2 https://svn.boost.org/trac10/ticket/4537#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">invalid</span> </li> </ul> <p> This warning is intentional. mpl::print is supposed to generate a warning. See <a href="http://www.boost.org/doc/libs/1_40_0/libs/serialization/doc/rationale.html#trap">http://www.boost.org/doc/libs/1_40_0/libs/serialization/doc/rationale.html#trap</a>. Note that this was downgraded to a warning. For some reason the rationale was removed from the documentation. </p> Ticket