I have a custom class containing only a std::map<std::string, int>.
I'm trying to serialize that using boost::serialization.
I create an object with the data {"foor":13} (this is the map in my custom object). Boost serializes that as
22 serialization::archive 15 22 serialization::archive 15 0 0 0 0 1 0 0 0 4 foor 13
So far, so good (?).
Now, I take the same source (with few adaptations), I compile as wasm instead of x86. The same object is now serialized as
22 serialization::archive 18 0 0 0 0 1 0 0 0 4 foor 13
So, for some reasons, in one case, Boost chooses to use version 15 of the archive while in the other case, it chooses version 18. (obviously, unserialization of the x86-generated does not work in the wasm program)
How can I "force" Boost to use version 15 of the archive ?