[v3] Remove algos code duplication
François Dumont
frs.dumont@gmail.com
Sun Mar 25 20:14:00 GMT 2012
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.
2012-03-22 François Dumont <fdumont@gcc.gnu.org>
* include/bits/stl_algo.h: Hide in C++ 11 mode implementation
details made useless thanks to usage of lambdas.
(__find_if_not): Remove.
* include/bits/stl_heap.h: Likewise.
Tested undex linux x86_64 with
make check
and
make CXXFLAGS=-std=gnu++11 check
There are some errors building the testsuite entirely in C++11 mode but
none coming from this patch.
Are you interested ?
François
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lambda_algos.patch
Type: text/x-patch
Size: 31794 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20120325/a5e0c6ec/attachment.bin>
More information about the Libstdc++
mailing list