entity-manager: delete copy and move for EM class
Delete copy and move constructor/assignment from EntityManager class.
The class is not supposed to be copied or moved.
There is currently no instance of that in the code from what i know, but
it is good to be explicit here about what the class does and does not
support.
Tested: Inspection only.
Change-Id: I6631788de33be66c5d535461d413f039844df579
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/src/entity_manager/entity_manager.hpp b/src/entity_manager/entity_manager.hpp
index 5b5bbf6..636a904 100644
--- a/src/entity_manager/entity_manager.hpp
+++ b/src/entity_manager/entity_manager.hpp
@@ -37,6 +37,16 @@
std::shared_ptr<sdbusplus::asio::connection>& systemBus,
boost::asio::io_context& io);
+ // disable copy
+ EntityManager(const EntityManager&) = delete;
+ EntityManager& operator=(const EntityManager&) = delete;
+
+ // disable move
+ EntityManager(EntityManager&&) = delete;
+ EntityManager& operator=(EntityManager&&) = delete;
+
+ ~EntityManager() = default;
+
std::shared_ptr<sdbusplus::asio::connection> systemBus;
sdbusplus::asio::object_server objServer;
std::shared_ptr<sdbusplus::asio::dbus_interface> entityIface;