diff -u --exclude '*~' -r boost_1_42_0/boost/archive/basic_binary_oarchive.hpp boost_1_42_0.patched/boost/archive/basic_binary_oarchive.hpp --- boost_1_42_0/boost/archive/basic_binary_oarchive.hpp 2009-12-05 06:32:01.000000000 +0000 +++ boost_1_42_0.patched/boost/archive/basic_binary_oarchive.hpp 2010-02-04 09:06:44.000000000 +0000 @@ -80,31 +80,31 @@ void save_override(const version_type & t, int){ // upto 255 versions // note:t.t resolves borland ambguity - assert(t.t <= boost::integer_traits::const_max); + assert(t.t < boost::integer_traits::const_max); const unsigned char x = static_cast(t.t); * this->This() << x; } void save_override(const class_id_type & t, int){ // upto 32K classes - assert(t.t <= boost::integer_traits::const_max); + assert(t.t < boost::integer_traits::const_max); const boost::int_least16_t x = static_cast(t.t); * this->This() << x; } void save_override(const class_id_reference_type & t, int){ // upto 32K classes - assert(t.t <= boost::integer_traits::const_max); + assert(t.t < boost::integer_traits::const_max); const boost::int_least16_t x = t.t; * this->This() << x; } void save_override(const object_id_type & t, int){ // upto 2G objects - assert(t.t <= boost::integer_traits::const_max); + assert(t.t < boost::integer_traits::const_max); const boost::uint_least32_t x = t.t; * this->This() << x; } void save_override(const object_reference_type & t, int){ // upto 2G objects - assert(t.t <= boost::integer_traits::const_max); + assert(t.t < boost::integer_traits::const_max); const boost::uint_least32_t x = t.t; * this->This() << x; }