C++ Logo

std-discussion

Advanced search

Re: Forwarding References from Variable Template

From: M.P. <dbc_at_[hidden]>
Date: Fri, 13 Mar 2026 09:30:41 -0000
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-13 09:30:50