Browse Source

dispatcher: rule of five

Michele Caini 1 year ago
parent
commit
d278a0f864
1 changed files with 9 additions and 0 deletions
  1. 9 0
      src/entt/signal/dispatcher.hpp

+ 9 - 0
src/entt/signal/dispatcher.hpp

@@ -158,6 +158,9 @@ public:
     explicit basic_dispatcher(const allocator_type &allocator)
     explicit basic_dispatcher(const allocator_type &allocator)
         : pools{allocator, allocator} {}
         : pools{allocator, allocator} {}
 
 
+    /*! @brief Default copy constructor, deleted on purpose. */
+    basic_dispatcher(const basic_dispatcher &) = delete;
+
     /**
     /**
      * @brief Move constructor.
      * @brief Move constructor.
      * @param other The instance to move from.
      * @param other The instance to move from.
@@ -178,6 +181,12 @@ public:
     /*! @brief Default destructor. */
     /*! @brief Default destructor. */
     ~basic_dispatcher() noexcept = default;
     ~basic_dispatcher() noexcept = default;
 
 
+    /**
+     * @brief Default copy assignment operator, deleted on purpose.
+     * @return This dispatcher.
+     */
+    basic_dispatcher &operator=(const basic_dispatcher &) = delete;
+
     /**
     /**
      * @brief Move assignment operator.
      * @brief Move assignment operator.
      * @param other The instance to move from.
      * @param other The instance to move from.