Delete copy and move in delegate_service.h

The implicitly provided copy and move copied internal pointers
which are invalid after copying.
This commit is contained in:
Roland Reichwein 2026-06-03 17:52:14 +02:00
parent 47fa453393
commit 98cf8ce1b4

View File

@ -117,6 +117,14 @@ namespace etl
lookup.fill(default_delegate);
}
delegate_service(const delegate_service&) ETL_DELETE;
delegate_service& operator=(const delegate_service&) ETL_DELETE;
#if ETL_USING_CPP11
delegate_service(delegate_service&&) ETL_DELETE;
delegate_service& operator=(delegate_service&&) ETL_DELETE;
#endif
//*************************************************************************
/// Registers a delegate for the specified id.
/// Compile time assert if the id is out of range.