Movatterモバイル変換


[0]ホーム

URL:


Issue 332 - WG21 CWG Issues
Title
cv-qualified void parameter types
Status
cd3
Section
9.3.4.6 [dcl.fct]
Submitter
Michiel Salters

Created on2002-01-09.00:00:00 last changed48 months ago

Messages

msg6681 (view)
Date: 2012-02-15.00:00:00

[Voted into the WP at the February, 2012 meeting;moved to DR at the October, 2012 meeting.]

msg3809 (view)
Date: 2011-08-15.00:00:00

Proposed resolution (August, 2011):

This issue is resolved by the resolution ofissue 577.

msg3460 (view)
Date: 2022-02-18.07:47:23

Suggested resolution:

A possible resolution would be to add (cv-qualified) before void in

The parameter list(void) is equivalent to the emptyparameter list. Exceptfor this special case,(cv-qualified)void shallnot be a parameter type (though types derived fromvoid, such asvoid*, can).
msg598 (view)
Date: 2022-02-18.07:47:23

9.3.4.6 [dcl.fct]/2 restricts the use of voidas parameter type, but does notmention CV qualified versions. Sincevoid f(volatile void)isn't a callablefunction anyway, 9.3.4.6 [dcl.fct]should also ban cv-qualified versions.(BTW, this follows C)

History
DateUserActionArgs
2022-02-18 07:47:23adminsetmessages: +msg6681
2014-03-03 00:00:00adminsetstatus: drwp -> cd3
2012-11-03 00:00:00adminsetstatus: dr -> drwp
2012-02-27 00:00:00adminsetmessages: +msg3809
2012-02-27 00:00:00adminsetstatus: ready -> dr
2011-09-06 00:00:00adminsetmessages: +msg3460
2011-09-06 00:00:00adminsetstatus: open -> ready
2002-01-09 00:00:00admincreate

[8]ページ先頭

©2009-2026 Movatter.jp