Explorar el Código

minor changes: noexcept-ness review (close #372)

Michele Caini hace 6 años
padre
commit
d4d2db228e
Se han modificado 2 ficheros con 4 adiciones y 4 borrados
  1. 2 2
      src/entt/signal/dispatcher.hpp
  2. 2 2
      src/entt/signal/emitter.hpp

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

@@ -116,7 +116,7 @@ public:
      * @return A temporary sink object.
      */
     template<typename Event>
-    auto sink() ENTT_NOEXCEPT {
+    auto sink() {
         return assure<Event>().sink();
     }
 
@@ -187,7 +187,7 @@ public:
      * @tparam Event Type of events to discard.
      */
     template<typename... Event>
-    void discard() ENTT_NOEXCEPT {
+    void discard() {
         if constexpr(sizeof...(Event) == 0) {
             std::for_each(pools.begin(), pools.end(), [](auto &&cpool) {
                 cpool->clear();

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

@@ -275,7 +275,7 @@ public:
      * @tparam Event Type of event to reset.
      */
     template<typename Event>
-    void clear() ENTT_NOEXCEPT {
+    void clear() {
         assure<Event>().clear();
     }
 
@@ -297,7 +297,7 @@ public:
      * @return True if there are no listeners registered, false otherwise.
      */
     template<typename Event>
-    bool empty() const ENTT_NOEXCEPT {
+    bool empty() const {
         return assure<Event>().empty();
     }