Serialization support for small_vector
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
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
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
participants (2)
-
Brian Wood
-
Ion Gaztañaga