Hello,

I found that stream serialization and deserialization of matrices does not work anymore in Visual Studio 2005. It works fine with gcc.

(See the attached program)

Expected output:
Serialized identity matrix: '[3,3]((1,0,0),(0,1,0),(0,0,1))'
Matrix mat before stream extraction: [0,0]()
Matrix mat after stream extraction: [3,3]((1,0,0),(0,1,0),(0,0,1))

Actual output:
Serialized identity matrix: '[3,3]((1,0,0),(0,1,0),(0,0,1))'
Matrix mat before stream extraction: [0,0]()
Matrix mat after stream extraction: [0,0]()

The problem seems to be that the STL shipped with VC2005 does not support extraction of numbers separated with anything but whitespace. This is documented as issue 101172  ( http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=101172) in the Visual Studio feedback system.

Maybe this should be mentioned in the documentation somewhere, or possibly a workaround can be found.

Thanks for your help.