This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [v3] Simplify a tad _Bind<_Functor(_Bound_args...)>
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Paolo Carlini <paolo dot carlini at oracle dot com>
- Cc: "libstdc++" <libstdc++ at gcc dot gnu dot org>
- Date: Fri, 15 Jan 2010 23:59:05 +0000
- Subject: Re: [v3] Simplify a tad _Bind<_Functor(_Bound_args...)>
- References: <4B50686A.4050505@oracle.com>
2010/1/15 Paolo Carlini:
> Hi all, Jon,
>
> I'm thinking of simplifying a bit the recently introduced mechanism like
> this. Can you imagine anything wrong with it? Passes regtesting, of course.
I thought about doing that, but never tried it. I think it should be
OK (but if we have to revert <functional> then it's moot anyway.)
> As a side note, I think it would be really nice if we could use *only*
> result_of instead, thus hiding declval tricks, but I don't think it's
> feasible, did you try hard Jon?
I tried - but I don't think it's possible with the current definition
of result_of, but might be with the proposed resolution of LWG 1225
I could be wrong though, I hit so many obstacles implementing that
code, and often wasn't sure if the problem was with g++, the
definition in the standard, or just my own limitation to write the
code correctly.