This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 115e. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2024-11-11


1398. Non-type template parameters of type std::nullptr_t

Section: 13.4.3  [temp.arg.nontype]     Status: CD3     Submitter: Daniel Krügler     Date: 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 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.

Proposed resolution (February, 2012):

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