Movatterモバイル変換


[0]ホーム

URL:


Issue 2343 - WG21 CWG Issues
Title
void* non-type template parameters
Status
c++20
Section
13.2 [temp.param]
Submitter
Daveed Vandevoorde

Created on2017-04-17.00:00:00 last changed60 months ago

Messages

msg6518 (view)
Date: 2021-02-17.00:00:00

Additional note, February, 2021:

Although this issue was ultimately resolved for C++20 bythe adoption of paper P1907R1, it was previously addressedin a different manner by paper P0732R2, adopted at theJune, 2018 meeting.

msg6216 (view)
Date: 2018-04-15.00:00:00

Notes from the April, 2018 teleconference:

Not all implementations accept avoid* template parameter, sothis should not be a DR if it is eventually adopted. Furthermore, there issome implementation divergence over the kinds of template arguments thatcan be passed to avoid* template parameter. CWG felt that EWGshould weigh in on the desirability and content of this change.

msg5945 (view)
Date: 2019-11-15.00:00:00

[Adopted at the November, 2019 meeting as part of paper P1907R1.]

According to 13.2 [temp.param] bullet 4.2, non-type templateparameters of pointer type must be either

  • pointer to object or pointer to function

This excludesvoid*, which is an object pointer but not apointer to object. However, most or all current implementations acceptvoid* as a non-type template parameter.

History
DateUserActionArgs
2021-02-17 00:00:00adminsetmessages: +msg6518
2021-02-17 00:00:00adminsetstatus: extension -> c++20
2018-04-11 00:00:00adminsetmessages: +msg6216
2018-04-11 00:00:00adminsetstatus: open -> extension
2017-04-17 00:00:00admincreate

[8]ページ先頭

©2009-2026 Movatter.jp