diff --git a/test/math_info.cpp b/test/math_info.cpp index 0ac04d7e..68f3d944 100644 --- a/test/math_info.cpp +++ b/test/math_info.cpp @@ -24,7 +24,7 @@ #include #ifdef BOOST_NO_STDC_NAMESPACE -namespace std{ using ::strcmp; } +namespace std{ using ::strcmp; using ::pow; using ::fabs; using ::sqrt; using ::sin; using ::atan2; } #endif static unsigned int indent = 4; @@ -158,12 +158,18 @@ void print_limits(T, const char* name) std::cout << " alignment_of<" << name << "> = " << boost::alignment_of::value << std::endl << std::endl; } - +/* template bool is_same_type(T, T) { return true; -} +}*/ +bool is_same_type(float, float) +{ return true; } +bool is_same_type(double, double) +{ return true; } +bool is_same_type(long double, long double) +{ return true; } template bool is_same_type(T, U) { @@ -175,13 +181,13 @@ bool is_same_type(T, U) // the floating point types or not: // namespace std{ - +#if !BOOST_WORKAROUND(BOOST_MSVC, == 1300) template char abs(T) { return ' '; } - +#endif }