Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r64922 - trunk/boost/spirit/home/support/detail/lexer
From: jamin.hanson_at_[hidden]
Date: 2010-08-19 08:57:20


Author: ben_hanson
Date: 2010-08-19 08:57:19 EDT (Thu, 19 Aug 2010)
New Revision: 64922
URL: http://svn.boost.org/trac/boost/changeset/64922

Log:
Use static_cast for consistency.
Text files modified:
   trunk/boost/spirit/home/support/detail/lexer/consts.hpp | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: trunk/boost/spirit/home/support/detail/lexer/consts.hpp
==============================================================================
--- trunk/boost/spirit/home/support/detail/lexer/consts.hpp (original)
+++ trunk/boost/spirit/home/support/detail/lexer/consts.hpp 2010-08-19 08:57:19 EDT (Thu, 19 Aug 2010)
@@ -26,7 +26,8 @@
     // by adding one to comparison.
     const std::size_t num_wchar_ts =
         (boost::integer_traits<wchar_t>::const_max < 0x110000) ?
- boost::integer_traits<wchar_t>::const_max + std::size_t(1) : 0x110000;
+ boost::integer_traits<wchar_t>::const_max +
+ static_cast<std::size_t> (1) : 0x110000;
     const std::size_t null_token = static_cast<std::size_t> (~0);
     const std::size_t bol_token = static_cast<std::size_t> (~1);
     const std::size_t eol_token = static_cast<std::size_t> (~2);


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk