Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

std::identity

108 views
Skip to first unread message

David Krauss

unread,
May 13, 2010, 2:04:59 PM5/13/10
to
There are many uses for std::identity besides as a helper for
std::move. I'm surprised just now to see that it was removed between
N3035 and the FCD.

Can it be moved to <utility>? I imagine there's already a fair amount
of C++0x code out there which depends on it, and likely the popular
implementations haven't yet removed it so the impact is yet unknown.

--
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use
mailto:std...@netlab.cs.rpi.edu<std-c%2B%2...@netlab.cs.rpi.edu>
]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]

Johannes Schaub (litb)

unread,
May 14, 2010, 5:47:24 PM5/14/10
to
David Krauss wrote:

> There are many uses for std::identity besides as a helper for
> std::move. I'm surprised just now to see that it was removed between
> N3035 and the FCD.
>
> Can it be moved to <utility>? I imagine there's already a fair amount
> of C++0x code out there which depends on it, and likely the popular
> implementations haven't yet removed it so the impact is yet unknown.
>

I would also vote to bring it back, if it's really removed. It's one of the
most basic *and* (imho) useful metafunction and it's missing? That would be
odd.

--
[ comp.std.c++ is moderated. To submit articles, try just posting with ]

[ your news-reader. If that fails, use mailto:std...@netlab.cs.rpi.edu]

0 new messages