[Boost-bugs] [Boost C++ Libraries] #8138: Conversion warning in sequence_stack.hpp

Subject: [Boost-bugs] [Boost C++ Libraries] #8138: Conversion warning in sequence_stack.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-02-21 21:56:19


#8138: Conversion warning in sequence_stack.hpp
-------------------------------------+--------------------------------------
 Reporter: mbradle@… | Owner: eric_niebler
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: xpressive
  Version: Boost Development Trunk | Severity: Cosmetic
 Keywords: |
-------------------------------------+--------------------------------------
 Hello,

 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.

 Brad Meyer

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8138>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:12 UTC