CWG Issue 1398 (original) (raw)
This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 118e. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.
2025-11-05
1398. Non-type template parameters of type std::nullptr_t
Section: 13.4.3 [temp.arg.nontype]Status: CD3Submitter: Daniel KrüglerDate: 2011-09-27
[Moved to DR at the October, 2012 meeting.]
Although 13.2 [temp.param] paragraph 4 explicitly allows non-type template parameters of typestd::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 tostd::nullptr_t.
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 typestd::nullptr_t.