[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:
Bill Wendling 2003-03-17 12:20:07 -05:00
parent e12c035350
commit a6b59791ab
9 changed files with 12 additions and 8 deletions

View File

@ -18,7 +18,7 @@
*/
#include <string>
#ifndef H5_NO_NAMESPACE
#if !defined(H5_NO_NAMESPACE) && !defined(H5_NO_STD)
using namespace std;
#endif

View File

@ -19,7 +19,7 @@
*/
#include <string>
#ifndef H5_NO_NAMESPACE
#if !defined(H5_NO_NAMESPACE) && !defined(H5_NO_STD)
using namespace std;
#endif

View File

@ -17,7 +17,7 @@
//
#include <string>
#ifndef H5_NO_NAMESPACE
#if !defined(H5_NO_NAMESPACE) && !defined(H5_NO_STD)
using namespace std;
#endif

View File

@ -20,7 +20,7 @@
*/
#include <string>
#ifndef H5_NO_NAMESPACE
#if !defined(H5_NO_NAMESPACE) && !defined(H5_NO_STD)
using namespace std;
#endif

View File

@ -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

View File

@ -19,7 +19,7 @@
//
#include <string>
#ifndef H5_NO_NAMESPACE
#if !defined(H5_NO_NAMESPACE) && !defined(H5_NO_STD)
using namespace std;
#endif

View File

@ -22,7 +22,7 @@
*/
#include <string>
#ifndef H5_NO_NAMESPACE
#if !defined(H5_NO_NAMESPACE) && !defined(H5_NO_STD)
using namespace std;
#endif

View File

@ -23,7 +23,9 @@
#ifndef H5_NO_NAMESPACE
namespace H5 {
#ifndef H5_NO_STD
using namespace std;
#endif // H5_NO_STD
#endif
// Default constructor

View File

@ -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 {