Salome HOME
Updated copyright comment
[modules/shaper.git] / src / XAO / XAO_Exception.hxx
index 3c99bb7a5f6b84bc26ec552d13fddbe8d9ae144d..485d9da449384fa49a5eaa8c46ee4d81070ee8a6 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2013-2020  CEA/DEN, EDF R&D
+// Copyright (C) 2013-2024  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 #include "XAO.hxx"
 #include <exception>
 
-#ifdef WIN32
-#pragma warning(disable : 4275) // for std::exception
-#endif
-
 namespace XAO
 {
     /**
@@ -45,13 +41,13 @@ namespace XAO
         {
         }
 
-        virtual ~XAO_Exception() throw() {};
+        virtual ~XAO_Exception() noexcept {};
 
         /**
          * Returns the error message.
          * @return the error message.
          */
-        virtual const char* what() const throw ()
+        virtual const char* what() const noexcept
         {
             return m_message;
         }