From 98cf8ce1b462892ca98be110f88c6abe7c9069c9 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Wed, 3 Jun 2026 17:52:14 +0200 Subject: [PATCH] Delete copy and move in delegate_service.h The implicitly provided copy and move copied internal pointers which are invalid after copying. --- include/etl/delegate_service.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/etl/delegate_service.h b/include/etl/delegate_service.h index 6ca7b40c..13070243 100644 --- a/include/etl/delegate_service.h +++ b/include/etl/delegate_service.h @@ -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.