Title
Taking the address of a function
Status
c++11
Section
[specialized.algorithms]
Submitter
Peter Dimov

Created on 2009-03-09.00:00:00 last changed 161 months ago

Messages

Date: 2010-10-21.18:28:33

[ The resolution assumes that addressof is reintroduced as described in n2946 ]

In [specialized.algorithms] change as described:

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

Returns: The actual address of the object or function referenced by r, even in the presence of an overloaded operator&.

Date: 2010-10-21.18:28:33

[ 2009-10 post-Santa Cruz: ]

Move to Tentatively Ready.

Date: 2009-10-10.00:00:00

[ 2009-10-10 Daniel updates wording to concept-free. ]

Date: 2010-10-21.18:28:33

[ 2009-07 Frankfurt ]

Moved from Tentatively Ready to Open only because the wording needs to be tweaked for concepts removal.

Date: 2010-10-21.18:28:33

[ Batavia (2009-05): ]

We agree.

Move to Tentatively Ready.

Date: 2009-03-09.00:00:00

The same fix (reference 987) may be applied to addressof, which is also constrained to ObjectType. (That was why boost::ref didn't work with functions - it tried to apply boost::addressof and the reinterpret_cast<char&> implementation of addressof failed.)

History
Date User Action Args
2011-08-23 20:07:26adminsetstatus: wp -> c++11
2010-10-21 18:28:33adminsetmessages: + msg4743
2010-10-21 18:28:33adminsetmessages: + msg4742
2010-10-21 18:28:33adminsetmessages: + msg4741
2010-10-21 18:28:33adminsetmessages: + msg4740
2010-10-21 18:28:33adminsetmessages: + msg4739
2009-03-09 00:00:00admincreate