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: [v3] Remove algos code duplication


Am 25. März 2012 22:13 schrieb Marc Glisse <marc.glisse@inria.fr>:
> 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?

Unfortunately yes: User-code can independently specialize std::less, so
this could cause an observable difference. During concept time Doug
Gregor suggested to simplify the library specification in that way, but the
committee could not agree on that because of this observability problem.

- Daniel


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