|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r73446 - trunk/boost
From: antoshkka_at_[hidden]
Date: 2011-07-30 12:47:31
Author: apolukhin
Date: 2011-07-30 12:47:30 EDT (Sat, 30 Jul 2011)
New Revision: 73446
URL: http://svn.boost.org/trac/boost/changeset/73446
Log:
Fixes #5732.
* at least compiles on pgi
Text files modified:
trunk/boost/lexical_cast.hpp | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
Modified: trunk/boost/lexical_cast.hpp
==============================================================================
--- trunk/boost/lexical_cast.hpp (original)
+++ trunk/boost/lexical_cast.hpp 2011-07-30 12:47:30 EDT (Sat, 30 Jul 2011)
@@ -1156,7 +1156,7 @@
{ using namespace std;
if (put_inf_nan(start,finish,val)) return true;
finish = start + swprintf(out,
-#if !defined(__MINGW32__) && !defined(__PGIC__)
+#if !defined(__MINGW32__)
finish-start,
#endif
L"%.*g", static_cast<int>(boost::detail::lcast_get_precision<float >()), val );
@@ -1176,7 +1176,7 @@
* Standard.
*/
finish = start + swprintf(out,
-#if !defined(__MINGW32__) && !defined(__PGIC__)
+#if !defined(__MINGW32__)
finish-start,
#endif
L"%.*lg", static_cast<int>(boost::detail::lcast_get_precision<double >()), val );
@@ -1187,11 +1187,7 @@
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,
-#if !defined(__PGIC__)
- finish-start,
-#endif
- L"%.*Lg", static_cast<int>(boost::detail::lcast_get_precision<long double >()), val );
+ finish = start + swprintf(out, finish-start, L"%.*Lg", static_cast<int>(boost::detail::lcast_get_precision<long double >()), val );
return finish > start;
}
#endif
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