Boost logo

Boost :

Subject: [boost] Serialization support for small_vector
From: Brian Wood (woodbrian77_at_[hidden])
Date: 2017-07-07 05:22:32


I've added support for small_vector to the C++ Middleware

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/

I used the following "Middle" code for testing:

message-lengths variable
    -out (message_id_8, ::boost::container::small_vector<int32_t,30>)

>From what I could tell the serialization/deserialization worked fine.

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.

Ebenezer Enterprises - In G-d we trust.

Boost list run by bdawes at, gregod at, cpdaniel at, john at