summaryrefslogtreecommitdiffstats
path: root/c++/src
diff options
context:
space:
mode:
Diffstat (limited to 'c++/src')
-rw-r--r--c++/src/H5Exception.cpp2
-rw-r--r--c++/src/H5Exception.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/c++/src/H5Exception.cpp b/c++/src/H5Exception.cpp
index e00b1de..8513372 100644
--- a/c++/src/H5Exception.cpp
+++ b/c++/src/H5Exception.cpp
@@ -22,7 +22,7 @@
namespace H5 {
#endif
-const H5std_string Exception::DEFAULT_MSG("No detailed information provided");
+const char Exception::DEFAULT_MSG[] = "No detailed information provided";
//--------------------------------------------------------------------------
// Function: Exception default constructor
diff --git a/c++/src/H5Exception.h b/c++/src/H5Exception.h
index c17ff5b..9bc3ab2 100644
--- a/c++/src/H5Exception.h
+++ b/c++/src/H5Exception.h
@@ -17,6 +17,7 @@
#ifndef _H5Exception_H
#define _H5Exception_H
+#pragma warning (disable : 4251)
#include <string>
#ifndef H5_NO_NAMESPACE
@@ -84,7 +85,7 @@ class H5_DLLCPP Exception {
protected:
// Default value for detail_message
- static const H5std_string DEFAULT_MSG;
+ static const char DEFAULT_MSG[];
};
class H5_DLLCPP FileIException : public Exception {