diff --git a/sys/cpp11-compat/include/riot/thread.hpp b/sys/cpp11-compat/include/riot/thread.hpp index 8647edbc5e..7446c13daf 100644 --- a/sys/cpp11-compat/include/riot/thread.hpp +++ b/sys/cpp11-compat/include/riot/thread.hpp @@ -345,7 +345,7 @@ thread::thread(F&& f, Args&&... args) : m_data{new thread_data} { using func_and_args = tuple ::type, typename decay::type...>; unique_ptr p( - new func_and_args(m_data.get(), forward(f), forward(args)...)); + new func_and_args(m_data.get(), std::forward(f), std::forward(args)...)); m_handle = thread_create( m_data->stack.data(), m_data->stack.size(), THREAD_PRIORITY_MAIN - 1, 0, &thread_proxy, p.get(), "riot_cpp_thread");