Serialization of multidimmensional arrays

Hello, We have just updated to 1.35 and it seems as if serialization of multidimensional arrays is broken. In 1.34_1, the following serialization code worked fine: int ints[2][2]; template<class Archive> void serialize(Archive & ar, const unsigned int version) { ar & BOOST_SERIALIZATION_NVP( ints ); } In 1.35_0, I receive the following error at compile time: oserializer.hpp:489: error: invalid static_cast from type ‘const int (*)[2]’ to type ‘const int*’ I have been able to get around this by looping through the outer dimension of the array and serializing all inner arrays separately, however this solution is less than ideal. If this is in fact an issue with the library, I am highly concerned. It seems to me that this issue should have been caught during regression testing. Thanks! Jason -- Jason Gorski Research Engineer Oasis Advanced Engineering, Inc. (248)373-9800 x 269

We have just updated to 1.35 and it seems as if serialization of multidimensional arrays is broken.
I ran into the same issue. I filed a bug at: http://svn.boost.org/trac/boost/ticket/1778 and it is being looked at. In the meantime, I had to work around it. -Dan
participants (2)
-
Dan Thill
-
Jason Gorski