Răsfoiți Sursa

process: implicit noexcept-ness for dtors

Michele Caini 1 an în urmă
părinte
comite
21829cc27f
2 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 1 1
      src/entt/process/process.hpp
  2. 2 2
      src/entt/process/scheduler.hpp

+ 1 - 1
src/entt/process/process.hpp

@@ -188,7 +188,7 @@ public:
     process &operator=(process &&) noexcept = default;
 
     /*! @brief Default destructor. */
-    virtual ~process() noexcept {
+    virtual ~process() {
         static_assert(std::is_base_of_v<process, Derived>, "Incorrect use of the class template");
     }
 

+ 2 - 2
src/entt/process/scheduler.hpp

@@ -18,7 +18,7 @@ namespace internal {
 
 template<typename Delta>
 struct basic_process_handler {
-    virtual ~basic_process_handler() noexcept = default;
+    virtual ~basic_process_handler() = default;
 
     virtual bool update(const Delta, void *) = 0;
     virtual void abort(const bool) = 0;
@@ -130,7 +130,7 @@ public:
     }
 
     /*! @brief Default destructor. */
-    ~basic_scheduler() noexcept = default;
+    ~basic_scheduler() = default;
 
     /**
      * @brief Default copy assignment operator, deleted on purpose.