This is the mail archive of the
mailing list for the GCC project.
Re: [patch] : Improve std::search on v7
-----BEGIN PGP SIGNED MESSAGE-----
Paolo Carlini wrote:
> As I said, there is no point in working out those details, because we
> don't know how to deal with unions.
(sorry about my last e-mail... not sure how it got half-eaten..)
I haven't thought about unions in a very long time. I'm going to have a
look now. I can see now how EBO can go wrong, and also how to fix it
(same as vector already does). Thank you!
I can tell you how I'd like to deal with unions, which is by dispatching
based on tr1::is_union<_Comp> ;) However, until that comes along, it
might be necessary to come up with a temporary solution.
Out of interest, why isn't this union business also a problem for
allocators on the standard containers? Are they just not allowed to be
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)
-----END PGP SIGNATURE-----