This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 112e. See for the official list.


1371. Deduction from T&& in return types

Section:  [temp.deduct.type]     Status: NAD     Submitter: Michael Wong     Date: 2011-08-15

The special rule in [temp.deduct.type] paragraph 10 for handling T&& in template argument deduction applies only to function parameters. It also needs to apply to function return types (including for conversion function templates, [temp.deduct.conv]).

Rationale (February, 2012):

The specification is as intended: the special treatment of lvalue arguments in deduction is to make “perfect forwarding” work and should not be applied in other contexts.