Boost logo

Boost Users :

Subject: Re: [Boost-users] Serialization support for small_vector
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2017-07-07 11:29:49


On 07/07/2017 7:22, Brian Wood via Boost-users wrote:
> Shalom
>
> I've added support for small_vector to the C++ Middleware
> Writer.
>
> While testing the support, I got a warning about dereferencing a
> type-punned pointer breaking strict-aliasing rules. That was on
> line 340 of small_vector.hpp. I was using g++ 7.1 on FreeBSD/
> TrueOS.

Thanks Brian,

It seems impossible to write portable system code in C++ recently ;-)
Could you please open a ticket with the full warning so that I can get
some clues?

> If small_vector were broken out into a separate library
> that would be helpful from my perspective. It would make
> it easier for me to add small_vector to my example code.

small_vector is a wrapper around vector, so it's tightly coupled, I'm sorry.

Best,

Ion


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net