Boost C++ Libraries: Ticket #8138: Conversion warning in sequence_stack.hpp https://svn.boost.org/trac10/ticket/8138 <p> Hello, </p> <p> When I compile the example code boost-trunk/libs/graph/example/write_graphviz.cpp with the g++ compiler flag -Wconversion, I get the warning 'conversion to 'double' from 'size_t' may alter its value' (see attached test.txt). Casting this-&gt;current_chunk_-&gt;size() as a double on line 118 of boost/xpressive/detail/utility/sequence_stack.hpp clears this warning (see attached diff.txt). This is a possible patch. Thanks, and best wishes. </p> <p> Brad Meyer </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8138 Trac 1.4.3 mbradle@… Thu, 21 Feb 2013 21:57:32 GMT attachment set https://svn.boost.org/trac10/ticket/8138 https://svn.boost.org/trac10/ticket/8138 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test.txt</span> </li> </ul> <p> transcript of compilation and warning </p> Ticket mbradle@… Thu, 21 Feb 2013 21:59:03 GMT attachment set https://svn.boost.org/trac10/ticket/8138 https://svn.boost.org/trac10/ticket/8138 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">diff.txt</span> </li> </ul> <p> Change that removed the warning (possible patch) </p> Ticket Eric Niebler Tue, 05 Mar 2013 06:08:02 GMT <link>https://svn.boost.org/trac10/ticket/8138#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8138#comment:1</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/83304" title="silence a gcc warning, refs #8138">[83304]</a>) silence a gcc warning, refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8138" title="#8138: Bugs: Conversion warning in sequence_stack.hpp (closed: fixed)">#8138</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Eric Niebler</dc:creator> <pubDate>Sun, 10 Mar 2013 00:41:59 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/8138#comment:2 https://svn.boost.org/trac10/ticket/8138#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">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/83390" title="merge [83304] from trunk, fixes #8138">[83390]</a>) merge <a class="changeset" href="https://svn.boost.org/trac10/changeset/83304" title="silence a gcc warning, refs #8138">[83304]</a> from trunk, fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8138" title="#8138: Bugs: Conversion warning in sequence_stack.hpp (closed: fixed)">#8138</a> </p> Ticket