Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77221 - trunk/boost
From: antoshkka_at_[hidden]
Date: 2012-03-04 12:59:04


Author: apolukhin
Date: 2012-03-04 12:59:03 EST (Sun, 04 Mar 2012)
New Revision: 77221
URL: http://svn.boost.org/trac/boost/changeset/77221

Log:
Attempt to supress warning described in #6645 (implicit conversion shortens 64-bit value into a 32-bit value)
Text files modified:
   trunk/boost/lexical_cast.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/lexical_cast.hpp
==============================================================================
--- trunk/boost/lexical_cast.hpp (original)
+++ trunk/boost/lexical_cast.hpp 2012-03-04 12:59:03 EST (Sun, 04 Mar 2012)
@@ -953,7 +953,7 @@
             CharT const capital_e = lcast_char_constants<CharT>::capital_e;
             CharT const lowercase_e = lcast_char_constants<CharT>::lowercase_e;
 
- value = 0.0;
+ value = static_cast<T>(0);
 
             if (parse_inf_nan(begin, end, value)) return true;
 


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