Browse Source

signal: update noexcept policy

Michele Caini 4 years ago
parent
commit
50812a908c
2 changed files with 3 additions and 3 deletions
  1. 1 1
      src/entt/signal/dispatcher.hpp
  2. 2 2
      src/entt/signal/emitter.hpp

+ 1 - 1
src/entt/signal/dispatcher.hpp

@@ -225,7 +225,7 @@ public:
     }
     }
 
 
     /*! @brief Discards all the events queued so far. */
     /*! @brief Discards all the events queued so far. */
-    void clear() {
+    void clear() ENTT_NOEXCEPT {
         for(auto &&cpool: pools) {
         for(auto &&cpool: pools) {
             cpool.second->clear();
             cpool.second->clear();
         }
         }

+ 2 - 2
src/entt/signal/emitter.hpp

@@ -157,7 +157,7 @@ public:
         friend class emitter;
         friend class emitter;
 
 
         /*! @brief Default constructor. */
         /*! @brief Default constructor. */
-        connection() = default;
+        connection() ENTT_NOEXCEPT = default;
 
 
         /**
         /**
          * @brief Creates a connection that wraps its underlying instance.
          * @brief Creates a connection that wraps its underlying instance.
@@ -171,7 +171,7 @@ public:
     emitter() = default;
     emitter() = default;
 
 
     /*! @brief Default destructor. */
     /*! @brief Default destructor. */
-    virtual ~emitter() {
+    virtual ~emitter() ENTT_NOEXCEPT {
         static_assert(std::is_base_of_v<emitter<Derived>, Derived>, "Incorrect use of the class template");
         static_assert(std::is_base_of_v<emitter<Derived>, Derived>, "Incorrect use of the class template");
     }
     }