registry: rule of five

This commit is contained in:
Michele Caini
2024-05-24 08:00:55 +02:00
parent ee64ca4afb
commit c885044ce4

View File

@@ -344,6 +344,9 @@ public:
rebind();
}
/*! @brief Default copy constructor, deleted on purpose. */
basic_registry(const basic_registry &) = delete;
/**
* @brief Move constructor.
* @param other The instance to move from.
@@ -359,6 +362,12 @@ public:
/*! @brief Default destructor. */
~basic_registry() noexcept = default;
/**
* @brief Default copy assignment operator, deleted on purpose.
* @return This mixin.
*/
basic_registry &operator=(const basic_registry &) = delete;
/**
* @brief Move assignment operator.
* @param other The instance to move from.