Idea for more delegations in <algorithm>

Paolo Carlini pcarlini@suse.de
Wed Mar 23 16:54:00 GMT 2005


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.



More information about the Libstdc++ mailing list