From 2b411792801f981a43701e390f072a37f8a81303 Mon Sep 17 00:00:00 2001 From: Binh-Minh Ribler Date: Sat, 3 Dec 2005 07:27:14 -0500 Subject: [svn-r11756] Purpose: Test improvement Description: Improved the use of std members. Platforms tested: Linux 2.4 (heping) SunOS 5.8 64-bit (sol) Linux 2.4 w/PGI (colonelk) --- c++/test/dsets.cpp | 9 +++++++++ c++/test/h5cpputil.cpp | 8 ++++++++ c++/test/tattr.cpp | 9 +++++++-- c++/test/tfile.cpp | 11 +++++++++-- c++/test/th5s.cpp | 9 +++++++++ 5 files changed, 42 insertions(+), 4 deletions(-) diff --git a/c++/test/dsets.cpp b/c++/test/dsets.cpp index a96e95f..0adbfca 100644 --- a/c++/test/dsets.cpp +++ b/c++/test/dsets.cpp @@ -29,6 +29,15 @@ #else #include #endif +#include + +#ifndef H5_NO_NAMESPACE +#ifndef H5_NO_STD + using std::string; + using std::cerr; + using std::endl; +#endif // H5_NO_STD +#endif #include "testhdf5.h" // C test header file #include "H5Cpp.h" // C++ API header file diff --git a/c++/test/h5cpputil.cpp b/c++/test/h5cpputil.cpp index 44894b2..1d320ca 100644 --- a/c++/test/h5cpputil.cpp +++ b/c++/test/h5cpputil.cpp @@ -27,6 +27,14 @@ #endif #include +#ifndef H5_NO_NAMESPACE +#ifndef H5_NO_STD + using std::string; + using std::cerr; + using std::endl; +#endif // H5_NO_STD +#endif + #include "h5test.h" #include "H5Exception.h" #include "h5cpputil.h" diff --git a/c++/test/tattr.cpp b/c++/test/tattr.cpp index 616c73a..34bb6d1 100644 --- a/c++/test/tattr.cpp +++ b/c++/test/tattr.cpp @@ -19,13 +19,18 @@ ***************************************************************************/ -#include - #ifdef OLD_HEADER_FILENAME #include #else #include #endif +#include + +#ifndef H5_NO_NAMESPACE +#ifndef H5_NO_STD + using std::string; +#endif // H5_NO_STD +#endif #include "testhdf5.h" // C test header file #include "H5Cpp.h" // C++ API header file diff --git a/c++/test/tfile.cpp b/c++/test/tfile.cpp index 7737a45..8910408 100644 --- a/c++/test/tfile.cpp +++ b/c++/test/tfile.cpp @@ -22,13 +22,20 @@ ***************************************************************************/ -#include - #ifdef OLD_HEADER_FILENAME #include #else #include #endif +#include + +#ifndef H5_NO_NAMESPACE +#ifndef H5_NO_STD + using std::string; + using std::cerr; + using std::endl; +#endif // H5_NO_STD +#endif #include "testhdf5.h" // C test header file #include "H5Cpp.h" // C++ API header file diff --git a/c++/test/th5s.cpp b/c++/test/th5s.cpp index b5595b5..d8cdb0b 100644 --- a/c++/test/th5s.cpp +++ b/c++/test/th5s.cpp @@ -26,6 +26,15 @@ #else #include #endif +#include + +#ifndef H5_NO_NAMESPACE +#ifndef H5_NO_STD + using std::string; + using std::cerr; + using std::endl; +#endif // H5_NO_STD +#endif #include "testhdf5.h" // C test header file #include "H5Cpp.h" // C++ API header file -- cgit v0.12