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

Created on 2015-12-13.00:00:00 last changed 90 months ago

Messages

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.

Date: 2016-02-07.20:24:45

[ 2016-02, Issues Telecon ]

P0; move to Tentatively Ready.

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
2017-07-30 20:15:43adminsetstatus: wp -> c++17
2016-03-07 04:11:48adminsetstatus: ready -> wp
2016-02-07 20:24:45adminsetmessages: + msg7963
2016-02-07 20:24:45adminsetstatus: new -> ready
2015-12-17 19:25:36adminsetmessages: + msg7662
2015-12-13 00:00:00admincreate