Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r48739 - in branches/release: . boost/functional/detail
From: daniel_james_at_[hidden]
Date: 2008-09-11 14:28:52


Author: danieljames
Date: 2008-09-11 14:28:51 EDT (Thu, 11 Sep 2008)
New Revision: 48739
URL: http://svn.boost.org/trac/boost/changeset/48739

Log:
Always use c99 float function overloads when using Dinkumware with Visual C++,
as it doesn't always have the C++ overloads. Fixes #2264.

Merged revisions 48529,48674 via svnmerge from
https://svn.boost.org/svn/boost/trunk

........
  r48529 | danieljames | 2008-09-02 11:31:26 +0100 (Tue, 02 Sep 2008) | 1 line
  
  Always use c99 float function overloads on Dinkumware, as it doesn't always
  have the C++ overloads. Refs #2264.
........
  r48674 | danieljames | 2008-09-08 22:06:16 +0100 (Mon, 08 Sep 2008) | 7 lines
  
  Reinstate the old choice of float functions on Dinkumware for all compilers
  other than Visual C++.
  
  It turns out that Borland uses Dinkumware but doesn't have the C99 float
  overloads, so it only seems realistic to assume their existence on Visual C++.
  Refs #2264.
........

Properties modified:
   branches/release/ (props changed)
Text files modified:
   branches/release/boost/functional/detail/float_functions.hpp | 10 +++++++---
   1 files changed, 7 insertions(+), 3 deletions(-)

Modified: branches/release/boost/functional/detail/float_functions.hpp
==============================================================================
--- branches/release/boost/functional/detail/float_functions.hpp (original)
+++ branches/release/boost/functional/detail/float_functions.hpp 2008-09-11 14:28:51 EDT (Thu, 11 Sep 2008)
@@ -61,9 +61,13 @@
 
 // Dinkumware.
 #elif (defined(_YVALS) && !defined(__IBMCPP__)) || defined(_CPPLIB_VER)
-// Overloaded float functions were probably introduced in an earlier version
-// than this.
-# if defined(_CPPLIB_VER) && (_CPPLIB_VER >= 402)
+// Some versions of Visual C++ don't seem to have the C++ overloads but they
+// all seem to have the c99 float overloads
+# if defined(BOOST_MSVC)
+# define BOOST_HASH_USE_C99_FLOAT_FUNCS
+// On other platforms the C++ overloads seem to have been introduced sometime
+// before 402.
+# elif defined(_CPPLIB_VER) && (_CPPLIB_VER >= 402)
 # define BOOST_HASH_USE_OVERLOAD_FLOAT_FUNCS
 # else
 # define BOOST_HASH_USE_C99_FLOAT_FUNCS


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