This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [libstdc++] Problems with deques (patch included)
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- To: Peter Schmid <schmid at snake dot iap dot physik dot tu-darmstadt dot de>
- Cc: <libstdc++ at gcc dot gnu dot org>, <gcc-patches at gcc dot gnu dot org>
- Date: 08 Jul 2002 13:40:04 +0200
- Subject: Re: [libstdc++] Problems with deques (patch included)
- Organization: CodeSourcery, LLC
- References: <Pine.LNX.4.30.0207081313520.27586-100000@snake.iap.physik.tu-darmstadt.de>
Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de> writes:
| |This unncessarily breaks ABI. It is better to reorder the
| |base-initialiser-list insteads of the data member declaration.
|
|
| I deliberately reordered the data member declarations in such a way
| to remove an abi breaking change with respect to the deque class
| that is shipped with gcc 3.1. I believe abi changes with respect to
| different libstdc++ version should be minimized, therefore I suggested
| the patch.
I'm unclear with your explanation: reordering the data member
declaration changes the object layout. How can that minimize ABI
changes compared to reordering the base-intializer-list?
Thanks,
-- Gaby