Serialized and deserialized types must match#291
Serialized and deserialized types must match#291olologin wants to merge 1 commit intoboostorg:developfrom
Conversation
In our project at work we use custom boost archive for serialization and deserialization, and unsigned integers are serialized in a non-trivial way, which does not match with serialization of signed integer. This causes some troubles. I guess it is fine to change this serialization method in upstream project.
|
Hi @olologin , thanks for your interest in improving Boost.Graph. I don't really understand the problem here with the return type of |
|
@jeremy-murphy It is not easy to reproduce failure here, because in our company we override serialization of unsigned and signed types in boost archive, and we override it differently for signed and unsigned types, and this is why nobody else sees a problem in adj_list_serialize. |
|
I want to help, but I'm not sure whether this is actually a problem in Boost.Graph, or a problem in Boost.Serialization, or a problem in your code. I can't change anything in Boost.Graph without convincing evidence that the problem is here, which usually means a minimal working example that demonstrates the issue combined with a patch that fixes it. |
|
@jeremy-murphy I will try to come up with a test to reproduce failure. |
|
Just a comment: looking at the code I think the issue should be solved deducing the right type from the graph traits |
In our project at work we use custom boost archive for serialization and deserialization, and unsigned integers are serialized in a non-trivial way, which does not match with serialization of signed integer. This causes some troubles.
I guess it is fine to change this serialization method in upstream project.