diff options
author | Sean McBride <sean@rogue-research.com> | 2021-03-10 17:51:45 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-10 17:51:45 (GMT) |
commit | 20c452fe5c0955a81ae1222d846632f1525f08f4 (patch) | |
tree | 79ebdf43a51b3283625742e02614f1c3f15fc3b6 /c++/examples/testh5c++.sh.in | |
parent | c41a1cb2094ae0cc5fb40671181ce4e9f73ba9dc (diff) | |
download | hdf5-20c452fe5c0955a81ae1222d846632f1525f08f4.zip hdf5-20c452fe5c0955a81ae1222d846632f1525f08f4.tar.gz hdf5-20c452fe5c0955a81ae1222d846632f1525f08f4.tar.bz2 |
Removed checks/workarounds for pre-C++89 compatibility (#449)
After 30+ years, just assume that the following exist:
- extension-less includes
- namespaces
- std::
- static_cast
- bool
Diffstat (limited to 'c++/examples/testh5c++.sh.in')
-rw-r--r-- | c++/examples/testh5c++.sh.in | 36 |
1 files changed, 6 insertions, 30 deletions
diff --git a/c++/examples/testh5c++.sh.in b/c++/examples/testh5c++.sh.in index 46fe5eb..44dc9e7 100644 --- a/c++/examples/testh5c++.sh.in +++ b/c++/examples/testh5c++.sh.in @@ -67,11 +67,7 @@ temp_FILES="a.out $applib" cat > $appmain <<EOF #include <string> -#ifdef OLD_HEADER_FILENAME -#include <iostream.h> -#else #include <iostream> -#endif #include "H5Cpp.h" @@ -95,19 +91,11 @@ EOF # generate prog1 cat > $prog1 <<EOF -#ifdef OLD_HEADER_FILENAME - #include <iostream.h> -#else - #include <iostream> -#endif +#include <iostream> #include <string> -#ifndef H5_NO_NAMESPACE -#ifndef H5_NO_STD - using std::cout; - using std::endl; -#endif // H5_NO_STD -#endif +using std::cout; +using std::endl; int sub1(void) { cout << "in sub1" << endl; @@ -117,19 +105,11 @@ EOF # generate prog2 cat > $prog2 <<EOF -#ifdef OLD_HEADER_FILENAME - #include <iostream.h> -#else - #include <iostream> -#endif +#include <iostream> #include <string> -#ifndef H5_NO_NAMESPACE -#ifndef H5_NO_STD - using std::cout; - using std::endl; -#endif // H5_NO_STD -#endif +using std::cout; +using std::endl; int sub2(void) { cout << "in sub2" << endl; @@ -142,11 +122,7 @@ EOF cat > $hdf5main <<EOF #include <string> -#ifdef OLD_HEADER_FILENAME -#include <iostream.h> -#else #include <iostream> -#endif #include "H5Cpp.h" |