Support Tester's Use of std::abs(double)
Jeffrey Oldham
oldham at codesourcery.com
Wed Sep 5 15:56:50 UTC 2001
The Tester class sometimes uses the std::abs(double) to determine if
the resulting value is close enough to the desired value. We include
the C++ header files declaring the various std::abs. Without this
change, compiling src/Array/tests/array_test27.cpp fails using gcc
3.0.1 on Linux.
2001-09-05 Jeffrey D. Oldham <oldham at codesourcery.com>
* Tester.h: Add cstdlib and cmath to include declarations of
std::abs.
Tested on sequential Linux using gcc 3.0.1 by compiling Pooma library, array_test27, and Field tests
Approved by Stephen Smith
Applied to mainline
Thanks,
Jeffrey D. Oldham
oldham at codesourcery.com
-------------- next part --------------
Index: Tester.h
===================================================================
RCS file: /home/pooma/Repository/r2/src/Utilities/Tester.h,v
retrieving revision 1.12
diff -c -p -r1.12 Tester.h
*** Tester.h 2001/08/30 01:15:43 1.12
--- Tester.h 2001/09/03 23:14:35
***************
*** 53,58 ****
--- 53,60 ----
#include "Utilities/Inform.h"
#include "Utilities/PAssert.h"
+ #include <cstdlib>
+ #include <cmath>
//-----------------------------------------------------------------------------
More information about the pooma-dev
mailing list