dispatcher: rule of five

This commit is contained in:
Michele Caini
2024-05-23 08:40:08 +02:00
parent f9bf4c341d
commit d278a0f864

View File

@@ -158,6 +158,9 @@ public:
explicit basic_dispatcher(const allocator_type &allocator)
: pools{allocator, allocator} {}
/*! @brief Default copy constructor, deleted on purpose. */
basic_dispatcher(const basic_dispatcher &) = delete;
/**
* @brief Move constructor.
* @param other The instance to move from.
@@ -178,6 +181,12 @@ public:
/*! @brief Default destructor. */
~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.
* @param other The instance to move from.