This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [v3] Remove algos code duplication
- From: Marc Glisse <marc dot glisse at inria dot fr>
- To: François Dumont <frs dot dumont at gmail dot com>
- Cc: "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>
- Date: Sun, 25 Mar 2012 22:13:38 +0200 (CEST)
- Subject: Re: [v3] Remove algos code duplication
- References: <4F6F71F9.2050702@gmail.com>
- Reply-to: "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>
On Sun, 25 Mar 2012, François Dumont wrote:
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.
Hello,
two things, from an external observer (so you can ignore):
- is there anything wrong with std::less?
- if C++11 features allow to simplify libstdc++ internally, they could be
used unconditionally (so you can really remove code), there is a mechanism
in place to allow specific C++11 features inside the library, and I don't
think adding one more would be too hard. Now the maintainers might have a
more conservative policy ;-)
--
Marc Glisse