]> Creatis software - gdcm.git/blobdiff - src/gdcmException.h
* gdcmPython/Makefile.am fixed linking against libstdc++
[gdcm.git] / src / gdcmException.h
index 0938733be9b267d1a459c89c96c66bada8c2206a..1d0192c3cbe8b4288b6db399c139974ea7f511b1 100644 (file)
 #define GDCM_EXCEPTION_H
 
 #include <string>
+#ifdef _MSC_VER
+using namespace std;  // string type lives in the std namespace on VC++
+#endif
+
 #include <iostream>
 #include <exception>
 using namespace std;
@@ -36,12 +40,6 @@ class GDCM_EXPORT gdcmException : public exception {
   /// error message
   string error;
 
-  /// exception caught within exception class: print error message and die
-  static void fatal(const char *from) throw();
-
-  /// try to discover this (dynamic) class name
-  virtual string getName() const throw();
-
  public:
   /**
    * Builds an exception with minimal information: name of the thrower
@@ -55,7 +53,7 @@ class GDCM_EXPORT gdcmException : public exception {
   
 
   /**
-   * virtual descructor makes this class dynamic
+   * virtual destructor makes this class dynamic
    */
   virtual ~gdcmException() {
   }
@@ -74,6 +72,12 @@ class GDCM_EXPORT gdcmException : public exception {
   }
 
 
+  /// exception caught within exception class: print error message and die
+  static void fatal(const char *from) throw();
+
+  /// try to discover this (dynamic) class name
+  virtual string getName() const throw();
+
   friend ostream& operator<<(ostream &os, const gdcmException &e);
   
 };