Title
reference_wrapper constructor overly constrained
Status
cd1
Section
[refwrap.const]
Submitter
Peter Dimov

Created on 2007-05-10.00:00:00 last changed 172 months ago

Messages

Date: 2010-10-21.18:28:33

Proposed resolution:

Remove the explicit from the constructor of reference_wrapper. If the proposed resolution of the previous issue is accepted, remove the explicit from the T&& constructor as well to keep them in sync.

Date: 2007-05-10.00:00:00

The constructor of reference_wrapper is currently explicit. The primary motivation behind this is the safety problem with respect to rvalues, which is addressed by the proposed resolution of the previous issue. Therefore we should consider relaxing the requirements on the constructor since requests for the implicit conversion keep resurfacing.

Also please see the thread starting at c++std-lib-17398 for some good discussion on this subject.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg3449
2007-05-10 00:00:00admincreate