Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r80210 - trunk/boost
From: antoshkka_at_[hidden]
Date: 2012-08-25 15:07:47


Author: apolukhin
Date: 2012-08-25 15:07:46 EDT (Sat, 25 Aug 2012)
New Revision: 80210
URL: http://svn.boost.org/trac/boost/changeset/80210

Log:
Fix compilation of lexical cast with MSVC 2003 (refs #7255)
Text files modified:
   trunk/boost/lexical_cast.hpp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: trunk/boost/lexical_cast.hpp
==============================================================================
--- trunk/boost/lexical_cast.hpp (original)
+++ trunk/boost/lexical_cast.hpp 2012-08-25 15:07:46 EDT (Sat, 25 Aug 2012)
@@ -1361,7 +1361,7 @@
                 if (put_inf_nan(begin, end, val)) return true;
                 const double val_as_double = val;
                 end = begin +
-#if defined(_MSC_VER) && !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION)
+#if defined(_MSC_VER) && (_MSC_VER >= 1400) && !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION)
                     sprintf_s(begin, end-begin,
 #else
                     sprintf(begin,
@@ -1374,7 +1374,7 @@
             { using namespace std;
                 if (put_inf_nan(begin, end, val)) return true;
                 end = begin +
-#if defined(_MSC_VER) && !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION)
+#if defined(_MSC_VER) && (_MSC_VER >= 1400) && !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION)
                     sprintf_s(begin, end-begin,
 #else
                     sprintf(begin,
@@ -1388,7 +1388,7 @@
             { using namespace std;
                 if (put_inf_nan(begin, end, val)) return true;
                 end = begin +
-#if defined(_MSC_VER) && !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION)
+#if defined(_MSC_VER) && (_MSC_VER >= 1400) && !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION)
                     sprintf_s(begin, end-begin,
 #else
                     sprintf(begin,


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