|
Boost : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-11-03 12:59:24
Robert Ramey wrote:
> Looking at the status table, I would
> bet that finding/fixing an error in the text_archive will clear up a lot
> of
> failures. Then I would go for void_cast as its more self contained and
> could explain the pointer failures. Of course finding the last problem
> is going to be the hardest.
I found the first problem. When saving wchar_t, you were casing it to signed
short. When loading, you were loading it as unsigned short. Don't know why
this crashed tests, exactly, but when the stored value was negative, they
crashed.
When I apply the attached patch, I get much nicer results. Again, see
http://zigzag.cs.msu.su:7813/serialization.html
However, I'm really suspicious of passing wchar_t as unsigned shorts.
wchar_t is 32 bits on some compilers, and gcc is one of them -- which means
you're loosing some data.
I'll probably look at test_delete test next. Any ideas how to debug it, or
what could go wrong?
- Volodya
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk