Boost C++ Libraries: Ticket #9658: int from size_t conversion warning in hashed_index.hpp https://svn.boost.org/trac10/ticket/9658 <p> Hello, </p> <p> When I compile libs/multi_index/example/hashed.cpp with </p> <p> g++ -Wconversion -I../../.. -o hashed hashed.cpp </p> <p> I get the conversion warning: </p> <p> hashed.cpp:103:45: instantiated from here ../../../boost/multi_index/hashed_index.hpp:1343:21: warning: conversion to 'int' from 'size_t' may alter its value </p> <p> When I apply the patch in diff.txt (attached), the code compiles without the warning. The patch also includes the change on line 1399. </p> <p> Best wishes, </p> <p> Brad </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9658 Trac 1.4.3 mbradle@… Tue, 11 Feb 2014 20:48:33 GMT attachment set https://svn.boost.org/trac10/ticket/9658 https://svn.boost.org/trac10/ticket/9658 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">diff.txt</span> </li> </ul> <p> possible patch </p> Ticket Joaquín M López Muñoz Wed, 12 Feb 2014 07:27:53 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/9658#comment:1 https://svn.boost.org/trac10/ticket/9658#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> Thank you Brad, fixed at </p> <p> <a class="ext-link" href="https://github.com/boostorg/multi_index/commit/97187ae4493228465f6bd8c197620185436685ba"><span class="icon">​</span>https://github.com/boostorg/multi_index/commit/97187ae4493228465f6bd8c197620185436685ba</a> </p> Ticket mbradle@… Tue, 18 Feb 2014 20:51:44 GMT <link>https://svn.boost.org/trac10/ticket/9658#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9658#comment:2</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/9658#comment:1" title="Comment 1">joaquin</a>: </p> <blockquote class="citation"> <p> Thank you Brad, fixed at </p> <p> <a class="ext-link" href="https://github.com/boostorg/multi_index/commit/97187ae4493228465f6bd8c197620185436685ba"><span class="icon">​</span>https://github.com/boostorg/multi_index/commit/97187ae4493228465f6bd8c197620185436685ba</a> </p> </blockquote> <p> A belated thanks! Best wishes. </p> <p> Brad </p> </description> <category>Ticket</category> </item> </channel> </rss>