[patch] libstdc++/56785 reduce space overhead of nested tuples

Jonathan Wakely jwakely@redhat.com
Sat Jan 17 15:59:00 GMT 2015


On 17/01/15 10:54 +0000, Jonathan Wakely wrote:
>On 17 January 2015 at 08:49, Marc Glisse wrote:
>> What about std::rotate in a different patch though? As I understand it,
>> changing the return type does not affect the mangling, and if we use the new
>> function (and its return value) and link with older code that has the old
>> function, if the linker picks the old function, bad things may happen, no?
>
>That's true. We don't need an abi_tag (that's needed for classes as
>they can be used as bases or members and alter the class layout
>without affecting the mangled name) but the new definition of
>std::rotate should be in the inline namespace _V2 that we've used for
>a few other types, so the linker won't confuse it with the old version
>returning void.

So something like this.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 904 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20150117/19ecc159/attachment.bin>


More information about the Libstdc++ mailing list