1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/cpp11-compat: fix compilation with clang++

This commit is contained in:
Marian Buschsieweke 2023-05-20 21:50:33 +02:00 committed by Marian Buschsieweke
parent 3336a8d173
commit 76347a83d7
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94

View File

@ -345,7 +345,7 @@ thread::thread(F&& f, Args&&... args) : m_data{new thread_data} {
using func_and_args = tuple
<thread_data*, typename decay<F>::type, typename decay<Args>::type...>;
unique_ptr<func_and_args> p(
new func_and_args(m_data.get(), forward<F>(f), forward<Args>(args)...));
new func_and_args(m_data.get(), std::forward<F>(f), std::forward<Args>(args)...));
m_handle = thread_create(
m_data->stack.data(), m_data->stack.size(), THREAD_PRIORITY_MAIN - 1, 0,
&thread_proxy<func_and_args>, p.get(), "riot_cpp_thread");