Title
Deduction from T&& in return types
Status
nad
Section
13.10.3.6 [temp.deduct.type]
Submitter
Michael Wong

Created on 2011-08-15.00:00:00 last changed 148 months ago

Messages

Date: 2012-02-15.00:00:00

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.

Date: 2022-11-20.07:54:16

The special rule in 13.10.3.6 [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, 13.10.3.4 [temp.deduct.conv]).

History
Date User Action Args
2012-02-27 00:00:00adminsetmessages: + msg3850
2012-02-27 00:00:00adminsetstatus: open -> nad
2011-08-15 00:00:00admincreate