|
Boost : |
Subject: Re: [boost] [container] ::flat_map function force_copy break strict-aliasing on gcc < 4.4
From: ÐладиÑлав Щапов (phprus_at_[hidden])
Date: 2017-01-31 12:05:14
Hello!
2017-01-31 21:48 GMT+05:00 Robert Ramey <ramey_at_[hidden]>:
> On 1/30/17 11:20 PM, ÐладиÑлав Щапов wrote:
>
>> gcc 4.3.4 (SLE 11) produced wrong code.
>> It seems that the compiler does not create a copy of an object "s" and
>> returns an object of D().
>>
>
> Hmmmm - this is what I would expect it to do.
>
Yes, but this function from boost::container::flat_map library (
https://github.com/boostorg/container/blob/develop/include/boost/container/flat_map.hpp#L61
).
Not in my code.
> Robert Ramey
>
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman
> /listinfo.cgi/boost
-- Best regards, Vladislav
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk