Title
N1856 defines struct identity
Status
cd1
Section
[forward]
Submitter
P.J. Plauger

Created on 2007-07-01.00:00:00 last changed 172 months ago

Messages

Date: 2010-10-21.18:28:33

Proposed resolution:

Change [forward]:

template <class T> struct identity
{
    typedef T type;
    const T& operator()(const T& x) const;
};
const T& operator()(const T& x) const;

Returns: x.

Date: 2007-07-01.00:00:00

N1856 defines struct identity in <utility> which clashes with the traditional definition of struct identity in <functional> (not standard, but a common extension from old STL). Be nice if we could avoid this name clash for backward compatibility.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg3474
2007-07-01 00:00:00admincreate