Title
addressof overload unneeded
Status
c++11
Section
[specialized.addressof]
Submitter
Howard Hinnant

Created on 2009-01-16.00:00:00 last changed 144 months ago

Messages

Date: 2013-01-25.00:32:44

Proposed resolution:

Change [specialized.addressof]:

template <ObjectType T> T* addressof(T& r);
template <ObjectType T> T* addressof(T&& r);
Date: 2009-11-18.00:00:00

[ 2009-11-18 Moved from Pending WP to WP. Confirmed in N3000. ]

Date: 2013-01-25.00:32:44

[ Batavia (2009-05): ]

We agree with the proposed resolution. Move to Tentatively Ready.

Date: 2013-01-25.00:32:44

[ Post Summit: ]

Recommend Review.

Date: 2009-01-16.00:00:00

[specialized.addressof] specifies:

template <ObjectType T> T* addressof(T& r);
template <ObjectType T> T* addressof(T&& r);

The two signatures are ambiguous when the argument is an lvalue. The second signature seems not useful: what does it mean to take the address of an rvalue?

History
Date User Action Args
2013-01-25 00:32:44adminsetmessages: + msg6350
2013-01-25 00:32:44adminsetmessages: + msg6349
2013-01-25 00:32:44adminsetmessages: + msg6348
2013-01-25 00:32:44adminsetmessages: + msg6347
2009-01-16 00:00:00admincreate