From faed17ab993e1fdf365ae4c2aef5f059c3ddb3c7 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Fri, 18 Aug 2023 20:54:47 +0100 Subject: [PATCH] Allow C++03 delegate in etl::callback_timer --- include/etl/callback_timer.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/etl/callback_timer.h b/include/etl/callback_timer.h index 7f16bffe..cc30ec99 100644 --- a/include/etl/callback_timer.h +++ b/include/etl/callback_timer.h @@ -587,13 +587,11 @@ namespace etl // Call the function wrapper callback. (*reinterpret_cast*>(timer.p_callback))(); } -#if ETL_USING_CPP11 else if(timer.cbk_type == callback_timer_data::DELEGATE) { // Call the delegate callback. (*reinterpret_cast(timer.p_callback))(); } -#endif } has_active = !active_list.empty();