This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Idea for more delegations in <algorithm>
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>,Chris Jefferson <caj at cs dot york dot ac dot uk>
- Date: Wed, 23 Mar 2005 17:54:31 +0100
- Subject: Re: Idea for more delegations in <algorithm>
- References: <4241980D.7010908@suse.de> <m3oedafh8v.fsf@uniton.integrable-solutions.net>
Gabriel Dos Reis wrote:
While I've committed my own share of enable-if sins, I've always been
very reluctant to spread it anywhere unless there really is no
acceptable alternative within the language. For vector<>, we already have
the dispatching stuff already in place, so I would not recommend that
approach. (Note too that insert() require the same thing and it is an
ABI change).
All these discussions are in the context of v7, no doubts.
I'm also thinking that probably this approach doesn't help with the case
which
is bothering us most, where we don't have *tag* classes, but function
objects...
However, I like that idea: it appears to reduce the overall number of
templates
and simplify the implementation, at least. Don't you agree?
Paolo.