Movatterモバイル変換


[0]ホーム

URL:


Issue 2145 - WG21 CWG Issues
Title
Parenthesized declarator in function definition
Status
cd4
Section
9.6.1 [dcl.fct.def.general]
Submitter
Richard Smith

Created on2015-06-19.00:00:00 last changed109 months ago

Messages

msg6101 (view)
Date: 2016-04-15.00:00:00

Proposed resolution (April, 2016):

Change 9.6.1 [dcl.fct.def.general] paragraph 2 as follows:

Thedeclarator inIn afunction-definition shall havethe form,

    D1parameters-and-qualifiers trailing-return-typeopt

eithervoiddeclarator; ordeclarator; shall be a well-formed functiondeclarator as described in9.3.4.6 [dcl.fct]. A function shall be defined onlyin namespace or class scope.

msg5658 (view)
Date: 2016-06-15.00:00:00

[Adopted at the June, 2016 meeting.]

According to 9.6.1 [dcl.fct.def.general] paragraph 2,

Thedeclarator in afunction-definition shall havethe form

    D1 (parameter-declaration-clause)cv-qualifier-seqopt
      ref-qualifieropt exception-specificationopt attribute-specifier-seqopt trailing-return-typeopt

However, in practice implementations accept a parenthesizeddeclarator in a function definition.

History
DateUserActionArgs
2017-02-06 00:00:00adminsetmessages: +msg6101
2017-02-06 00:00:00adminsetstatus: drafting -> cd4
2015-06-19 00:00:00admincreate

[8]ページ先頭

©2009-2026 Movatter.jp