Created on 2009-02-11.00:00:00 last changed 130 months ago
[Voted into WP at August, 2010 meeting.]
Proposed resolution (February, 2010):
Change 13.4.3 [temp.arg.nontype] bullet 1.3 as follows:
the address of an object or function with external linkage,
including function templates and function template-ids but
excluding non-static class members, expressed (ignoring
parentheses) as & id-expression, except
that where the & is optional
may be omitted if the name refers to a function or
array, or and shall be omitted if the
corresponding template-parameter is a reference; or
[Drafting note: The change requiring the omission of the & in the reference case fixes an existing problem that is not related to this issue.]
Notes from the March, 2009 meeting:
The consensus of the CWG was that the parentheses should be allowed.
According to 13.4.3 [temp.arg.nontype] paragraph 1, bullet 3, one of the acceptable forms of a non-type, non-template template argument is:
the address of an object or function... expressed as & id-expression where the & is optional if the name refers to a function or array, or if the corresponding template-parameter is a reference
It is not clear from this whether a template argument like (&i) satisfies the requirement or not.
History | |||
---|---|---|---|
Date | User | Action | Args |
2014-03-03 00:00:00 | admin | set | status: fdis -> c++11 |
2011-04-10 00:00:00 | admin | set | status: wp -> fdis |
2010-11-29 00:00:00 | admin | set | status: dr -> wp |
2010-08-23 00:00:00 | admin | set | messages: + msg2923 |
2010-08-23 00:00:00 | admin | set | status: ready -> dr |
2010-03-29 00:00:00 | admin | set | status: review -> ready |
2010-02-16 00:00:00 | admin | set | messages: + msg2555 |
2010-02-16 00:00:00 | admin | set | status: drafting -> review |
2009-03-23 00:00:00 | admin | set | messages: + msg1957 |
2009-02-11 00:00:00 | admin | create |