From 39172c281a3d69f552a113e924f3eb2379e18ae8 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Wed, 8 Apr 2026 23:21:41 +0100 Subject: [PATCH] Fixed C++03 compatibility --- include/etl/closure.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/etl/closure.h b/include/etl/closure.h index 1409d31f..1e9b33ed 100644 --- a/include/etl/closure.h +++ b/include/etl/closure.h @@ -44,7 +44,7 @@ namespace etl /// \tparam TSignature The callback signature. /// \tparam TCallback The callback type, defaults to etl::delegate. //************************************************************************* - template > + template > class closure; #if ETL_USING_CPP11 && !defined(ETL_CLOSURE_FORCE_CPP03_IMPLEMENTATION) @@ -66,9 +66,10 @@ namespace etl { public: - ETL_DEPRECATED using delegate_type = TCallback; ///< The callback type to be invoked. Deprecated, use callback_type instead. - using callback_type = TCallback; ///< The callback type to be invoked. - using argument_types = etl::type_list; ///< The type list of arguments. + ETL_DEPRECATED_REASON("Use callback_type") using delegate_type = + TCallback; ///< The callback type to be invoked. Deprecated, use callback_type instead. + using callback_type = TCallback; ///< The callback type to be invoked. + using argument_types = etl::type_list; ///< The type list of arguments. //********************************************************************* /// Construct a closure with a callback and its arguments.