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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user