Jelajahi Sumber

sigh: updated noexcept token

Michele Caini 4 tahun lalu
induk
melakukan
dc07af6ad1
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/entt/signal/sigh.hpp

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

@@ -67,7 +67,7 @@ public:
     using sink_type = sink<sigh<Ret(Args...), Allocator>>;
 
     /*! @brief Default constructor. */
-    sigh() noexcept(std::is_nothrow_constructible_v<sigh, const allocator_type &>)
+    sigh() noexcept(std::is_nothrow_default_constructible_v<allocator_type> &&std::is_nothrow_constructible_v<container_type, const allocator_type &>)
         : sigh{allocator_type{}} {}
 
     /**