Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r82807 - trunk/boost
From: antoshkka_at_[hidden]
Date: 2013-02-10 08:59:45


Author: apolukhin
Date: 2013-02-10 08:59:45 EST (Sun, 10 Feb 2013)
New Revision: 82807
URL: http://svn.boost.org/trac/boost/changeset/82807

Log:
Silence some buggy VS warnings (refs #7949)
Text files modified:
   trunk/boost/lexical_cast.hpp | 10 ++++++++++
   1 files changed, 10 insertions(+), 0 deletions(-)

Modified: trunk/boost/lexical_cast.hpp
==============================================================================
--- trunk/boost/lexical_cast.hpp (original)
+++ trunk/boost/lexical_cast.hpp 2013-02-10 08:59:45 EST (Sun, 10 Feb 2013)
@@ -1156,6 +1156,12 @@
 
     namespace detail // lcast_ret_float
     {
+
+// Silence buggy MS warnings like C4244: '+=' : conversion from 'int' to 'unsigned short', possible loss of data
+#if defined(_MSC_VER) && (_MSC_VER == 1400)
+# pragma warning(push)
+# pragma warning(disable:4244)
+#endif
         template <class T>
         struct mantissa_holder_type
         {
@@ -1397,6 +1403,10 @@
 
             return true;
         }
+// Unsilence buggy MS warnings like C4244: '+=' : conversion from 'int' to 'unsigned short', possible loss of data
+#if defined(_MSC_VER) && (_MSC_VER == 1400)
+# pragma warning(pop)
+#endif
     }
 
     namespace detail // stl_buf_unlocker


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