Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r73435 - trunk/boost
From: antoshkka_at_[hidden]
Date: 2011-07-29 15:33:19


Author: apolukhin
Date: 2011-07-29 15:33:18 EDT (Fri, 29 Jul 2011)
New Revision: 73435
URL: http://svn.boost.org/trac/boost/changeset/73435

Log:
Fixes #5732.

* one more try to fix compilation errors on pgi compiler
Text files modified:
   trunk/boost/lexical_cast.hpp | 9 ++++++---
   1 files changed, 6 insertions(+), 3 deletions(-)

Modified: trunk/boost/lexical_cast.hpp
==============================================================================
--- trunk/boost/lexical_cast.hpp (original)
+++ trunk/boost/lexical_cast.hpp 2011-07-29 15:33:18 EDT (Fri, 29 Jul 2011)
@@ -1156,7 +1156,7 @@
             { using namespace std;
                 if (put_inf_nan(start,finish,val)) return true;
                 finish = start + swprintf(out,
-#ifndef __MINGW32__
+#if !defined(__MINGW32__) && !defined(__PGIC__)
                                           finish-start,
 #endif
                                           L"%.*g", static_cast<int>(boost::detail::lcast_get_precision<float >()), val );
@@ -1176,7 +1176,7 @@
                  * Standard.
                  */
                 finish = start + swprintf(out,
-#ifndef __MINGW32__
+#if !defined(__MINGW32__) && !defined(__PGIC__)
                                           finish-start,
 #endif
                                           L"%.*lg", static_cast<int>(boost::detail::lcast_get_precision<double >()), val );
@@ -1187,7 +1187,10 @@
             bool shl_long_double(long double val,wchar_t* out)
             { using namespace std;
                 if (put_inf_nan(start,finish,val)) return true;
- finish = start + swprintf(out,finish-start,
+ finish = start + swprintf(out,
+#if !defined(__PGIC__)
+ finish-start,
+#endif
                     L"%.*Lg", static_cast<int>(boost::detail::lcast_get_precision<long double >()), val );
                 return finish > start;
             }


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