Issue2572

Title 2572. The remarks for shared_ptr::operator* should apply to cv-qualified void as well
Status wp Section [util.smartptr.shared.obs]
Submitter Tim Song

Created on 2015-12-13.00:00:00 by admin, last changed by admin.

Messages
msg7956 (view) Date: 2016-02-07.20:24:45

Proposed resolution:

This wording is relative to N4567.

  1. Edit [util.smartptr.shared.obs]/4 as indicated:

    T& operator*() const noexcept;
    

    […]

    -4- Remarks: When T is (possibly cv-qualified) void, it is unspecified whether this member function is declared. If it is declared, it is unspecified what its return type is, except that the declaration (although not necessarily the definition) of the function shall be well formed.

msg7656 (view) Date: 2016-02-07.20:24:45

[ 2016-02, Issues Telecon ]

P0; move to Tentatively Ready.

msg7655 (view) Date: 2015-12-13.00:00:00

[util.smartptr.shared.obs]/4 says for shared_ptr::operator*

Remarks: When T is void, it is unspecified whether this member function is declared. If it is declared, it is unspecified what its return type is, except that the declaration (although not necessarily the definition) of the function shall be well formed.

This remark should also apply when T is cv-qualified void (compare LWG 2500).

History
Date User Action Args
2016-03-07 04:11:48adminsetstatus: ready -> wp
2016-02-07 20:24:45adminsetstatus: new -> ready
2016-02-07 20:24:45adminsetmessages: + msg7956
2015-12-17 19:25:36adminsetmessages: + msg7656
2015-12-13 00:00:00admincreate