|
Boost-Commit : |
From: john_at_[hidden]
Date: 2007-10-10 15:12:46
Author: johnmaddock
Date: 2007-10-10 15:12:46 EDT (Wed, 10 Oct 2007)
New Revision: 39900
URL: http://svn.boost.org/trac/boost/changeset/39900
Log:
Workaround for msvc+stlport.
Text files modified:
trunk/boost/math/concepts/real_concept.hpp | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
Modified: trunk/boost/math/concepts/real_concept.hpp
==============================================================================
--- trunk/boost/math/concepts/real_concept.hpp (original)
+++ trunk/boost/math/concepts/real_concept.hpp 2007-10-10 15:12:46 EDT (Wed, 10 Oct 2007)
@@ -246,7 +246,15 @@
template <class charT, class traits>
inline std::basic_istream<charT, traits>& operator>>(std::basic_istream<charT, traits>& is, real_concept& a)
{
+#if defined(BOOST_MSVC) && defined(__SGI_STL_PORT)
+ //
+ // STLPort 5.1.4 has a problem reading long doubles from strings,
+ // see http://sourceforge.net/tracker/index.php?func=detail&aid=1811043&group_id=146814&atid=766244
+ //
+ double v;
+#else
long double v;
+#endif
is >> v;
a = v;
return is;
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