|
Boost Users : |
Subject: [Boost-users] Serialization support for small_vector
From: Brian Wood (woodbrian77_at_[hidden])
Date: 2017-07-07 05:22:32
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.
I used the following "Middle" code for testing:
message-lengths variable
example_messages
-out (message_id_8, ::boost::container::small_vector<int32_t,30>)
-in
(::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.
Brian
Ebenezer Enterprises - In G-d we trust.
http://webEbenezer.net
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