Salome HOME
Updated environment and import/export directives
[modules/kernel.git] / src / Utils / Utils_CorbaException.hxx
index d785f16d103250a0c33228c917b93dcceeff5136..a559579f14cb8f86f7d234d96ed7edbda9627ed2 100644 (file)
@@ -29,6 +29,8 @@
 #ifndef _UTILS_CORBAEXCEPTION_HXX_
 #define _UTILS_CORBAEXCEPTION_HXX_
 
+#include <SALOME_Utils.hxx>
+
 #include <SALOMEconfig.h>
 #include CORBA_SERVER_HEADER(SALOME_Exception)
 
                 throw SALOME::SALOME_Exception(ExDescription); \
               }
 
-#include <ostream.h>
+#include <ostream>
+
 //Dump the CORBA exception type.
-static ostream& operator<<(ostream& os, const CORBA::Exception& e)
+inline std::ostream& operator<<(std::ostream& os, const CORBA::Exception& e)
 {
   CORBA::Any tmp;
   tmp<<= e;
@@ -63,4 +66,5 @@ static ostream& operator<<(ostream& os, const CORBA::Exception& e)
   
   return os;
 }
+
 #endif