ecore_cxx: Fix perfect forward of callback argument

This commit is contained in:
Vitor Sousa 2015-01-23 19:31:27 -02:00 committed by Felipe Magno de Almeida
parent d530389898
commit 3b441cdf4a
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ template <typename F>
void main_loop_thread_safe_call_async(F&& 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> ::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> template <typename F>