Boost logo

Boost :

From: Rene Rivera (grafik.list_at_[hidden])
Date: 2004-08-01 11:13:15


I just put in some fixes for the following type of errors:

# Error:

# ambiguous access to overloaded function
# 'std::log10(float)'
# 'std::log10(float)'

The problem was the direct use of
"boost/compatibility/cpp_c_headers/cmath" instead of doing the standard
"#include <cmath>"...
===================================================================
RCS file:
/cvsroot/boost/boost/boost/numeric/conversion/converter_policies.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- converter_policies.hpp 25 Jul 2004 16:58:06 -0000 1.2
+++ converter_policies.hpp 1 Aug 2004 16:01:18 -0000 1.3
@@ -12,7 +12,7 @@

  #include <typeinfo> // for std::bad_cast

-#include "boost/compatibility/cpp_c_headers/cmath" // for std::floor
and std::ceil
+#include <cmath> // for std::floor and std::ceil

  #include "boost/type_traits/is_arithmetic.hpp"
===================================================================
RCS file:
/cvsroot/boost/boost/libs/numeric/conversion/test/test_helpers.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- test_helpers.cpp 24 Jun 2004 11:59:25 -0000 1.1
+++ test_helpers.cpp 1 Aug 2004 16:05:07 -0000 1.2
@@ -16,7 +16,7 @@
  // from the Numeric Conversions Library
  //
  //
-#include "boost/compatibility/cpp_c_headers/cmath"
+#include <cmath>

  #include "boost/limits.hpp"
  #include "boost/utility.hpp"
===================================================================

That makes all the tests pass in CW8. This might fix other failures in
other toolsets. Tests for VC7.1 and Mingw still all pass.

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com - 102708583/icq

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk