2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 04:22:09 +00:00

Added static assertion to catch use of long double function overloads when BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS is defined.

Made sure that if BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS is defined, then no long double overloads are actually instantiated by the tests.

[SVN r41007]
This commit is contained in:
John Maddock
2007-11-11 14:05:50 +00:00
parent 6aa3c20c23
commit 69031ebe9d
63 changed files with 269 additions and 8 deletions

View File

@@ -853,9 +853,11 @@ int test_main(int, char*[])
check_spots(float(0));
std::cout << "Running complex trig spot checks for type double." << std::endl;
check_spots(double(0));
#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
std::cout << "Running complex trig spot checks for type long double." << std::endl;
check_spots((long double)(0));
#endif
std::cout << "Running complex trig boundary and accuracy tests." << std::endl;
test_boundaries();
return 0;