- Title
- brace-or-equal-initializers for function and typedef members
- Status
- cd3
- Section
- 11.4 [class.mem]
- Submitter
- Richard Smith
Created on 2011-08-16.00:00:00 last changed 152 months ago
Messages
Date: 2012-02-15.00:00:00
[Voted into the WP at the February, 2012 meeting;
moved to DR at the October, 2012 meeting.]
Date: 2011-08-15.00:00:00
Proposed resolution (August, 2011): In 11.4 [class.mem], delete paragraph 4 and change paragraph
5 as follows: A
A member can be initialized using a constructor; see 11.4.5 [class.ctor]. [Note: See 11.4.4 [special] for a
description of constructors and other special member functions.
—end note]member can be initialized using a
brace-or-equal-initializer shall appear only in the
declaration of a data member. (For static data members, see
11.4.9.3 [class.static.data]; for non-static data members, see
11.9.3 [class.base.init]).
Date: 2011-08-16.00:00:00
The grammar allows a brace-or-equal-initializer for any
class member with a member-declarator, including typedef
members and member function declarations, and there is no semantic
restriction forbidding those forms, either.
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2014-03-03 00:00:00 | admin | set | status: drwp -> cd3 |
| 2012-11-03 00:00:00 | admin | set | status: dr -> drwp |
| 2012-02-27 00:00:00 | admin | set | messages: + msg3822 |
| 2012-02-27 00:00:00 | admin | set | status: ready -> dr |
| 2011-09-06 00:00:00 | admin | set | messages: + msg3476 |
| 2011-08-16 00:00:00 | admin | create | |