diff --git a/BAN/include/BAN/Function.h b/BAN/include/BAN/Function.h index b2ed0c9aae..a01bd37053 100644 --- a/BAN/include/BAN/Function.h +++ b/BAN/include/BAN/Function.h @@ -32,7 +32,7 @@ namespace BAN new (m_storage) CallableMemberConst(function, owner); } template - Function(Lambda lambda) requires requires(Lambda lamda, Args... args) { { lambda(args...) } -> BAN::same_as; } + Function(Lambda lambda) requires requires(Lambda lamda, Args&&... args) { { lambda(forward(args)...) } -> BAN::same_as; } { static_assert(sizeof(CallableLambda) <= m_size); new (m_storage) CallableLambda(lambda);