Title
Rvalue references as nontype template parameters
Status
cd2
Section
13.2 [temp.param]
Submitter
Steve Adamczyk

Created on 2009-03-13.00:00:00 last changed 144 months ago

Messages

Date: 2009-10-15.00:00:00

[Voted into WP at October, 2009 meeting.]

Date: 2009-07-15.00:00:00

Proposed resolution (July, 2009):

Change 13.2 [temp.param] paragraph 4, bullet 3 as follows:

  • lvalue reference to object or lvalue reference to function,
Date: 2009-03-13.00:00:00

Nontype template parameters are currently allowed to have rvalue reference type (13.2 [temp.param] paragraph 4 bullet 3 just says “reference,” not “lvalue reference”). However, with the change of N2844 voted in (which prohibits rvalue references from binding to lvalues), I can't think of any way to specify a valid template argument for a parameter of rvalue reference type. If that's the case, should we restrict nontype template parameters to lvalue reference types?

History
Date User Action Args
2010-03-29 00:00:00adminsetstatus: dr -> cd2
2009-11-08 00:00:00adminsetmessages: + msg2473
2009-11-08 00:00:00adminsetstatus: ready -> dr
2009-08-03 00:00:00adminsetmessages: + msg2176
2009-08-03 00:00:00adminsetstatus: open -> ready
2009-03-13 00:00:00admincreate