Title
Non-type template parameters of type std::nullptr_t
Status
cd3
Section
13.4.3 [temp.arg.nontype]
Submitter
Daniel Kr├╝gler

Created on 2011-09-27.00:00:00 last changed 90 months ago

Messages

Date: 2012-10-15.00:00:00

[Moved to DR at the October, 2012 meeting.]

Date: 2012-02-15.00:00:00

Proposed resolution (February, 2012):

Add the following new bullet in 13.4.3 [temp.arg.nontype] paragraph 1:

  • ...

  • a pointer to member expressed as described in 7.6.2.2 [expr.unary.op].

  • an address constant expression of type std::nullptr_t.

Date: 2011-09-27.00:00:00

Although 13.2 [temp.param] paragraph 4 explicitly allows non-type template parameters of type std::nullptr_t, they cannot actually be used: 13.4.3 [temp.arg.nontype] paragraph 1 does not allow a template-argument of type std::nullptr_t, and paragraph 5 does not describe any conversions from other types to std::nullptr_t.

History
Date User Action Args
2014-03-03 00:00:00adminsetstatus: drwp -> cd3
2013-05-03 00:00:00adminsetstatus: dr -> drwp
2012-11-03 00:00:00adminsetmessages: + msg4159
2012-11-03 00:00:00adminsetstatus: ready -> dr
2012-02-27 00:00:00adminsetmessages: + msg3736
2012-02-27 00:00:00adminsetstatus: open -> ready
2011-09-27 00:00:00admincreate