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: Remove algo duplications


On 06/20/2012 10:40 PM, Marc Glisse wrote:
On Tue, 19 Jun 2012, François Dumont wrote:

No opinion regarding this patch ? Here is a slightly modified version without usage of lambda in is_heap_until implementation so that we use move semantic when possible.

Hi,


(not a comment on your patch) did you have any opinion about the possibility to use indirect functors? I.e. functors that get called as f(i,j) instead of f(*i,*j), and f(a,b) typically returns *a<*b. I am not sure it is a good idea, but it might avoid any regression.


Creating functors to capitalize on existing functor versions of algos seemed more natural but your idea is quite interesting indeed. I don't know why I haven't considered it more seriously the first time you proposed it, I will this time.


François



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