Boost logo

Boost Users :

Subject: [Boost-users] Problem in boost/boost_1_40/libs/serialization/example/demo.cpp
From: John Austin (johnwmaustin_at_[hidden])
Date: 2010-01-21 08:51:42


This is a versioning bug. The first of the following two lines is missing
from the example shipped with 1.40:

BOOST_CLASS_VERSION(bus_schedule::trip_info, 2) // missing from example
// BOOST_CLASS_VERSION(bus_schedule, 2) // not necessary for example to
work.

When the schedule is recreated, the driver is not copied to the bus_schedule
as the field is contained in the nested struct.

When I replace the second macro with the first one, the example works.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net