forked from enlightenment/efl
ecore_cxx: Fix perfect forward of callback argument
This commit is contained in:
parent
d530389898
commit
3b441cdf4a
|
@ -116,7 +116,7 @@ template <typename F>
|
|||
void main_loop_thread_safe_call_async(F&& f)
|
||||
{
|
||||
::ecore_main_loop_thread_safe_call_async( &ecore::_ecore_main_loop_thread_safe_call_async_callback<F>
|
||||
, new F(std::move(f)) );
|
||||
, new F(std::forward<F>(f)) );
|
||||
}
|
||||
|
||||
template <typename F>
|
||||
|
|
Loading…
Reference in New Issue