C++ Logo

std-discussion

Advanced search

Re: Forwarding References from Variable Template

From: Deslauriers, Douglas <Douglas.Deslauriers_at_[hidden]>
Date: Tue, 17 Mar 2026 15:25:32 +0000
Thank you M.P. and Wu, that certainly helped me correct my
misunderstanding.

On Fri, 2026-03-13 at 09:30 +0000, M.P. wrote:
> [You don't often get email from dbc_at_netc.eu. Learn why this is
> important at https://aka.ms/LearnAboutSenderIdentification ]
>
> Whether the type of `t` is a forwarding reference would be taken into
> account during overload resolution for a call to the closure type's
> function call operator, at which point you're necessarily dealing
> with a
> specific instantiation of `var`, where `T&&` is a reference to a
> concrete type rather than a template parameter (and the function call
> operator is not a template).
>

Received on 2026-03-17 15:25:53