[v3] Remove algos code duplication
Christopher Jefferson
chris@bubblescope.net
Mon Mar 26 10:14:00 GMT 2012
On 25 Mar 2012, at 20:28, François Dumont wrote:
> Hi
>
> Here is a patch proposal to remove the duplication of the implementation details of many algos thanks to usage of lambdas in C++ 11 mode. This is what has been experimented in libstdcxx_so_7 branch but abandonned, lambdas are the real answer to this problem.
Why do you believe that lambdas are a better solution to this problem, as opposed to using a separate class (not std::less, but something like it?) I don't see any advantage to using a lambda, and I see several disadvantages.
Chris
More information about the Libstdc++
mailing list