
3 Feb
2010
3 Feb
'10
2:38 p.m.
I've just tried building my code against 1.42 and am encountering numerous warnings of the sort: boost/archive/basic_binary_oarchive.hpp:95: warning: comparison is always true due to limited range of data type I've checked the difference to the 1.41 release and noticed that boost/archive/basic_archive.hpp now uses BOOST_ARCHIVE_STRONG_TYPEDEF for class_id_type etc. and uses int_least16_t rather than "int". This is causing my GCC 4.1.2 compiler to produce the above warning because the assertion "t.t <= boost::integer_traits<boost::int_least16_t>::const_max" is always true when t.t *is* an int_least16_t The attached patch removes the (now redundant) asserts.