This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [patch] : Improve std::search on v7
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: chris jefferson <caj at cs dot york dot ac dot uk>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>, gcc-patches at gcc dot gnu dot org
- Date: 19 Jun 2005 11:52:30 +0200
- Subject: Re: [patch] : Improve std::search on v7
- References: <42B53A83.9020405@cs.york.ac.uk>
chris jefferson <caj@cs.york.ac.uk> writes:
| This is quite a simple patch that does a few things.
|
| 1) Adds a new version of a more generic bind2nd to predefined_ops.h
| (if anyone has the old copy, it should be dumped and the file replaced
| with a clean CVS version, then this patch applied.
|
| This uses the "Empty Base Optimization" to avoid PR20408, but even if
I think we have already proven in the past that non-careful uses of
EBO change program semantics. Think of a function object with virtual
operator().
-- Gaby