|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r59834 - trunk/boost/archive
From: ramey_at_[hidden]
Date: 2010-02-22 00:00:59
Author: ramey
Date: 2010-02-22 00:00:57 EST (Mon, 22 Feb 2010)
New Revision: 59834
URL: http://svn.boost.org/trac/boost/changeset/59834
Log:
fix gcc warnings
Text files modified:
trunk/boost/archive/basic_binary_oarchive.hpp | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
Modified: trunk/boost/archive/basic_binary_oarchive.hpp
==============================================================================
--- trunk/boost/archive/basic_binary_oarchive.hpp (original)
+++ trunk/boost/archive/basic_binary_oarchive.hpp 2010-02-22 00:00:57 EST (Mon, 22 Feb 2010)
@@ -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<unsigned char>::const_max);
+ assert(t.t < boost::integer_traits<unsigned char>::const_max);
const unsigned char x = static_cast<const unsigned char>(t.t);
* this->This() << x;
}
void save_override(const class_id_type & t, int){
// upto 32K classes
- assert(t.t <= boost::integer_traits<boost::int_least16_t>::const_max);
+ assert(t.t < boost::integer_traits<boost::int_least16_t>::const_max);
const boost::int_least16_t x = static_cast<const boost::int_least16_t>(t.t);
* this->This() << x;
}
void save_override(const class_id_reference_type & t, int){
// upto 32K classes
- assert(t.t <= boost::integer_traits<boost::int_least16_t>::const_max);
+ assert(t.t < boost::integer_traits<boost::int_least16_t>::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<boost::uint_least32_t>::const_max);
+ assert(t.t < boost::integer_traits<boost::uint_least32_t>::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<boost::uint_least32_t>::const_max);
+ assert(t.t < boost::integer_traits<boost::uint_least32_t>::const_max);
const boost::uint_least32_t x = t.t;
* this->This() << x;
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk