Bläddra i källkod

process/scheduler: update noexcept policy

Michele Caini 4 år sedan
förälder
incheckning
02d1417ef4
2 ändrade filer med 2 tillägg och 2 borttagningar
  1. 1 1
      src/entt/process/process.hpp
  2. 1 1
      src/entt/process/scheduler.hpp

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

@@ -166,7 +166,7 @@ public:
     using delta_type = Delta;
     using delta_type = Delta;
 
 
     /*! @brief Default destructor. */
     /*! @brief Default destructor. */
-    virtual ~process() {
+    virtual ~process() ENTT_NOEXCEPT {
         static_assert(std::is_base_of_v<process, Derived>, "Incorrect use of the class template");
         static_assert(std::is_base_of_v<process, Derived>, "Incorrect use of the class template");
     }
     }
 
 

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

@@ -53,7 +53,7 @@ class scheduler {
     };
     };
 
 
     struct continuation {
     struct continuation {
-        continuation(process_handler *ref)
+        continuation(process_handler *ref) ENTT_NOEXCEPT
             : handler{ref} {}
             : handler{ref} {}
 
 
         template<typename Proc, typename... Args>
         template<typename Proc, typename... Args>