Title
Optional elements in attributes
Status
c++11
Section
9.12.1 [dcl.attr.grammar]
Submitter
Daveed Vandevoorde

Created on 2010-02-10.00:00:00 last changed 131 months ago

Messages

Date: 2011-03-15.00:00:00

[Voted into the WP at the March, 2011 meeting as part of paper N3262.]

Date: 2011-02-15.00:00:00

Proposed resolution (February, 2011) [SUPERSEDED]:

Change the grammar of 9.12.1 [dcl.attr.grammar] paragraph 1 as follows:

    balanced-token-seq:
      balanced-tokenopt
      balanced-token-seq balanced-token
Date: 2010-02-10.00:00:00

An attribute-argument-clause should be allowed to consist solely of (), i.e., with no balanced-token-seq. Furthermore, the grammar for balanced-token should make the balanced-token-seq optional. Both of these goals could be accomplished by making the balanced-token optional in the first production of the rule for balanced-token-seq.

History
Date User Action Args
2014-03-03 00:00:00adminsetstatus: fdis -> c++11
2011-04-10 00:00:00adminsetmessages: + msg3336
2011-04-10 00:00:00adminsetstatus: review -> fdis
2011-02-28 00:00:00adminsetmessages: + msg3242
2011-02-28 00:00:00adminsetstatus: drafting -> review
2010-08-23 00:00:00adminsetstatus: open -> drafting
2010-02-10 00:00:00admincreate