[container] ::flat_map function force_copy break strict-aliasing on gcc < 4.4
Hello!
On function:
template
Hello!
2017-01-31 21:48 GMT+05:00 Robert Ramey
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/f... ). Not in my code.
Robert Ramey
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman /listinfo.cgi/boost
-- Best regards, Vladislav
participants (2)
-
Robert Ramey
-
Владислав Щапов