mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-16 00:46:03 +08:00
Allow C++03 delegate in etl::callback_timer
This commit is contained in:
parent
9f4890748f
commit
faed17ab99
@ -587,13 +587,11 @@ namespace etl
|
||||
// Call the function wrapper callback.
|
||||
(*reinterpret_cast<etl::ifunction<void>*>(timer.p_callback))();
|
||||
}
|
||||
#if ETL_USING_CPP11
|
||||
else if(timer.cbk_type == callback_timer_data::DELEGATE)
|
||||
{
|
||||
// Call the delegate callback.
|
||||
(*reinterpret_cast<callback_type*>(timer.p_callback))();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
has_active = !active_list.empty();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user