Delete copy and move in callback_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:51:02 +02:00
parent 1189970691
commit 47fa453393

View File

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