Ticket #8138 (closed Bugs: fixed)
Conversion warning in sequence_stack.hpp
|Reported by:||mbradle@…||Owned by:||eric_niebler|
|Milestone:||To Be Determined||Component:||xpressive|
|Version:||Boost Development Trunk||Severity:||Cosmetic|
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->current_chunk_->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.