[multi_array][serialization]

The issue of serializing a multi-array came up here: http://lists.boost.org/boost-users/2007/06/28639.php I was wondering if anyone had followed up on this and would be willing to share his/her code.

er wrote:
The issue of serializing a multi-array came up here:
http://lists.boost.org/boost-users/2007/06/28639.php
I was wondering if anyone had followed up on this and would be willing to share his/her code.
Here's the code based on the above suggestions. I would have thought that overloading serialize (see below) would permit oa << array and ia
array, but not (compile error : array has no member serialize). Therefore, if I want to embed multi_array in another data-structure, what is the next step?
Thanks in advance.
template

If some generous soul would care to share some insight on this one, I have put the code here together with an example : https://svn.boost.org/svn/boost/sandbox/statistics/detail/multi_array/ As far as I can tell, as per the doc, load/save/serialize overloads are the proper set up for non-intrusive serialization. Although load and save compile individually, the overload of the free function serialize is "bypassed" by the compiler i.e. it "looks" for serializable member variables.

Perhaps it's that PFTO thing http://www.boost.org/doc/libs/1_32_0/libs/serialization/doc/implementation.h... that's causing the pb because serializing a STL vector causes the same compile error as previously described. gcc version 4.2.1 (Apple Inc. build 5646) / Snow Leopard. More head scratching...

er wrote:
Perhaps it's that PFTO thing
http://www.boost.org/doc/libs/1_32_0/libs/serialization/doc/implementation.h...
that's causing the pb because serializing a STL vector causes the same compile error as previously described.
gcc version 4.2.1 (Apple Inc. build 5646) / Snow Leopard.
More head scratching...
This issue was very small and is resolved.
participants (1)
-
er