mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-19 16:50:46 +08:00
[svn-r6485] Purpose:
Bug Fix Description: "using namespace std" isn't supported on HP-UX. We ahve the H5_NO_STD flag begin set, but it wasn't being used. Solution: Added the check to the #ifdef line to see if H5_NO_STD is defined before trying to use it in the program. Platforms tested: Kelgia
This commit is contained in:
parent
e12c035350
commit
a6b59791ab
@ -18,7 +18,7 @@
|
||||
*/
|
||||
|
||||
#include <string>
|
||||
#ifndef H5_NO_NAMESPACE
|
||||
#if !defined(H5_NO_NAMESPACE) && !defined(H5_NO_STD)
|
||||
using namespace std;
|
||||
#endif
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
||||
*/
|
||||
|
||||
#include <string>
|
||||
#ifndef H5_NO_NAMESPACE
|
||||
#if !defined(H5_NO_NAMESPACE) && !defined(H5_NO_STD)
|
||||
using namespace std;
|
||||
#endif
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
//
|
||||
|
||||
#include <string>
|
||||
#ifndef H5_NO_NAMESPACE
|
||||
#if !defined(H5_NO_NAMESPACE) && !defined(H5_NO_STD)
|
||||
using namespace std;
|
||||
#endif
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
||||
*/
|
||||
|
||||
#include <string>
|
||||
#ifndef H5_NO_NAMESPACE
|
||||
#if !defined(H5_NO_NAMESPACE) && !defined(H5_NO_STD)
|
||||
using namespace std;
|
||||
#endif
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
// the C version is used in this example.
|
||||
//
|
||||
#include <string>
|
||||
#ifndef H5_NO_NAMESPACE
|
||||
#if !defined(H5_NO_NAMESPACE) && !defined(H5_NO_STD)
|
||||
using namespace std;
|
||||
#endif
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
||||
//
|
||||
|
||||
#include <string>
|
||||
#ifndef H5_NO_NAMESPACE
|
||||
#if !defined(H5_NO_NAMESPACE) && !defined(H5_NO_STD)
|
||||
using namespace std;
|
||||
#endif
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
*/
|
||||
|
||||
#include <string>
|
||||
#ifndef H5_NO_NAMESPACE
|
||||
#if !defined(H5_NO_NAMESPACE) && !defined(H5_NO_STD)
|
||||
using namespace std;
|
||||
#endif
|
||||
|
||||
|
@ -23,7 +23,9 @@
|
||||
|
||||
#ifndef H5_NO_NAMESPACE
|
||||
namespace H5 {
|
||||
#ifndef H5_NO_STD
|
||||
using namespace std;
|
||||
#endif // H5_NO_STD
|
||||
#endif
|
||||
|
||||
// Default constructor
|
||||
|
@ -20,7 +20,9 @@
|
||||
|
||||
#ifndef H5_NO_NAMESPACE
|
||||
namespace H5 {
|
||||
using namespace std;
|
||||
#ifndef H5_NO_STD
|
||||
using namespace std;
|
||||
#endif // H5_NO_STD
|
||||
#endif
|
||||
|
||||
class H5_DLLCPP Exception {
|
||||
|
Loading…
x
Reference in New Issue
Block a user