--- demo_original.cpp 2003-08-07 17:31:00.000000000 +0400 +++ demo.cpp 2003-09-18 17:11:54.000000000 +0400 @@ -175,12 +175,12 @@ void serialize(Archive &ar, unsigned int version) { // in this program, these classes are never serialized directly but rather // through a pointer to the base class bus_stop. So we need a way to be // sure that the archive contains information about these derived classes. - ar.register_type(); - ar.register_type(); + ar.template register_type(); + ar.template register_type(); // serialization of stl collections is already defined // in the header ar & stops; } @@ -222,11 +222,11 @@ { template void serialize(Archive &ar, unsigned int file_version) { // in versions 2 or later - if(file_version >= unsigned int(2)) + if(file_version >= static_cast(2)) // read the drivers name ar & driver; // all versions have the follwing info ar & hour & minute; }