Boost logo

Boost :

From: Darren Cook (darren_at_[hidden])
Date: 2005-04-22 20:46:20

Can I suggest adding another example to:

I had this code:

void mycallback(const BigClass &BC){
const SomeData *d=BC.get_data();

My archive was smaller than intended and I discovered that the data only
got saved the first time. XML version showed me it was using:

It turns out the fix was to dereference the pointer:

That is an easy to write bug; I cannot see how the serialization library
can catch it, so all I can think of is to make people aware of it in the
docs. Also please mention "object_id_reference" in the objecttracking
section of the docs, as that was the first thing I googled on and it got
no useful hits.


Boost list run by bdawes at, gregod at, cpdaniel at, john at