- Title
- Incomplete types as parameters of deleted functions
- Status
- cd3
- Section
- 9.3.4.6 [dcl.fct]
- Submitter
- Johannes Schaub
Created on 2011-09-11.00:00:00 last changed 152 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): Change 9.3.4.6 [dcl.fct] paragraph 9 as follows:
Types shall not be defined in return or parameter types. The type of
a parameter or the return type for a function definition shall not be
an incomplete class type (possibly cv-qualified) unless the function
is deleted (9.6.3 [dcl.fct.def.delete]) or the definition
is nested within the member-specification for that class
(including definitions in nested classes defined within the class).
Date: 2011-09-11.00:00:00
Currently, 9.3.4.6 [dcl.fct] paragraph 9 requires that There is no reason for this requirement for a function with a
deleted definition, and it would be useful to relax this prohibition
in such cases.
The type of a parameter or the return type for a function
definition shall not be an incomplete class type (possibly
cv-qualified) unless the function definition is nested within the
member-specification for that class (including definitions in
nested classes defined within the class).
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2014-03-03 00:00:00 | admin | set | status: drwp -> cd3 |
| 2013-05-03 00:00:00 | admin | set | status: dr -> drwp |
| 2012-11-03 00:00:00 | admin | set | messages: + msg4145 |
| 2012-11-03 00:00:00 | admin | set | status: ready -> dr |
| 2012-02-27 00:00:00 | admin | set | messages: + msg3720 |
| 2012-02-27 00:00:00 | admin | set | status: open -> ready |
| 2011-09-11 00:00:00 | admin | create | |