This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Idea for more delegations in <algorithm>


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]