From c8cb2b24a1c9c02781bf9e212aaad4548d95c257 Mon Sep 17 00:00:00 2001
From: nobody
Date: Tue, 21 Mar 2006 02:26:31 +0000
Subject: [PATCH 01/31] This commit was manufactured by cvs2svn to create
branch 'RC_1_34_0'.
[SVN r33417]
From 7ce7ba6bfd17382d2cc32bb8eac0f73c1f51e278 Mon Sep 17 00:00:00 2001
From: John Maddock
Date: Tue, 26 Sep 2006 09:04:05 +0000
Subject: [PATCH 02/31] Changed test to reflect changes made to C99 in the TC.
[SVN r35333]
---
cstdint_test.cpp | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/cstdint_test.cpp b/cstdint_test.cpp
index 08c13be..88422de 100644
--- a/cstdint_test.cpp
+++ b/cstdint_test.cpp
@@ -113,10 +113,24 @@ void integral_constant_type_check(T1, T2)
assert(sizeof(T1) == sizeof(T2));
assert(t1 == t2);
#endif
+#if defined(BOOST_HAS_STDINT_H)
+ // native headers are permitted to promote small
+ // unsigned types to type int:
+ if(sizeof(T1) >= sizeof(int))
+ {
+ if(t1 > 0)
+ assert(t2 > 0);
+ else
+ assert(!(t2 > 0));
+ }
+ else if(t1 < 0)
+ assert(!(t2 > 0));
+#else
if(t1 > 0)
assert(t2 > 0);
else
assert(!(t2 > 0));
+#endif
}
From 167961aba10a9887976850aa9231532f4e4893f5 Mon Sep 17 00:00:00 2001
From: Dave Abrahams
Date: Sun, 25 Feb 2007 15:28:02 +0000
Subject: [PATCH 03/31] Correct testing bugs:
either changing assert(...) or BOOST_ASSERT(...) to BOOST_TEST
(in my code only)
or adding "return boost::report_errors();" where it was clearly
missing (and a pure bug, in anyone's code).
or changing BOOST_TEST to BOOST_CHECK where the integer library
was clearly using Boost.Test and not returning report_errors().
[SVN r37063]
---
test/integer_mask_test.cpp | 8 ++---
test/static_log2_test.cpp | 2 +-
test/static_min_max_test.cpp | 70 ++++++++++++++++++------------------
3 files changed, 40 insertions(+), 40 deletions(-)
diff --git a/test/integer_mask_test.cpp b/test/integer_mask_test.cpp
index cbe3d87..6146ddf 100644
--- a/test/integer_mask_test.cpp
+++ b/test/integer_mask_test.cpp
@@ -19,16 +19,16 @@
#include // for std::cout (std::endl indirectly)
-#define PRIVATE_HIGH_BIT_SLOW_TEST(v) BOOST_TEST( ::boost::high_bit_mask_t< \
+#define PRIVATE_HIGH_BIT_SLOW_TEST(v) BOOST_CHECK( ::boost::high_bit_mask_t< \
(v) >::high_bit == (1ul << (v)) );
-#define PRIVATE_HIGH_BIT_FAST_TEST(v) BOOST_TEST( ::boost::high_bit_mask_t< \
+#define PRIVATE_HIGH_BIT_FAST_TEST(v) BOOST_CHECK( ::boost::high_bit_mask_t< \
(v) >::high_bit_fast == (1ul << (v)) );
#define PRIVATE_HIGH_BIT_TEST(v) do { PRIVATE_HIGH_BIT_SLOW_TEST(v); \
PRIVATE_HIGH_BIT_FAST_TEST(v); } while (false)
-#define PRIVATE_LOW_BITS_SLOW_TEST(v) BOOST_TEST( ::boost::low_bits_mask_t< \
+#define PRIVATE_LOW_BITS_SLOW_TEST(v) BOOST_CHECK( ::boost::low_bits_mask_t< \
(v) >::sig_bits == ((1ul << (v)) - 1) );
-#define PRIVATE_LOW_BITS_FAST_TEST(v) BOOST_TEST( ::boost::low_bits_mask_t< \
+#define PRIVATE_LOW_BITS_FAST_TEST(v) BOOST_CHECK( ::boost::low_bits_mask_t< \
(v) >::sig_bits_fast == ((1ul << (v)) - 1) );
#define PRIVATE_LOW_BITS_TEST(v) do { PRIVATE_LOW_BITS_SLOW_TEST(v); \
PRIVATE_LOW_BITS_FAST_TEST(v); } while (false)
diff --git a/test/static_log2_test.cpp b/test/static_log2_test.cpp
index d7b8d59..68628f6 100644
--- a/test/static_log2_test.cpp
+++ b/test/static_log2_test.cpp
@@ -20,7 +20,7 @@
// Macros to compact code
-#define PRIVATE_LB_TEST( v, e ) BOOST_TEST( ::boost::static_log2::value == e )
+#define PRIVATE_LB_TEST( v, e ) BOOST_CHECK( ::boost::static_log2::value == e )
#define PRIVATE_PRINT_LB( v ) ::std::cout << "boost::static_log2<" << (v) \
<< "> = " << ::boost::static_log2< (v) >::value << '.' << ::std::endl
diff --git a/test/static_min_max_test.cpp b/test/static_min_max_test.cpp
index 017b408..ed081f7 100644
--- a/test/static_min_max_test.cpp
+++ b/test/static_min_max_test.cpp
@@ -11,7 +11,7 @@
// 23 Sep 2001 Initial version (Daryle Walker)
#define BOOST_INCLUDE_MAIN
-#include // for main, BOOST_TEST
+#include // for main, BOOST_CHECK
#include // for boost::exit_success
#include // for boost::static_signed_min, etc.
@@ -37,57 +37,57 @@ test_main
// Two positives
cout << "Doing tests with two positive values." << endl;
- BOOST_TEST( (static_signed_min< 9, 14>::value) == 9 );
- BOOST_TEST( (static_signed_max< 9, 14>::value) == 14 );
- BOOST_TEST( (static_signed_min<14, 9>::value) == 9 );
- BOOST_TEST( (static_signed_max<14, 9>::value) == 14 );
+ BOOST_CHECK( (static_signed_min< 9, 14>::value) == 9 );
+ BOOST_CHECK( (static_signed_max< 9, 14>::value) == 14 );
+ BOOST_CHECK( (static_signed_min<14, 9>::value) == 9 );
+ BOOST_CHECK( (static_signed_max<14, 9>::value) == 14 );
- BOOST_TEST( (static_unsigned_min< 9, 14>::value) == 9 );
- BOOST_TEST( (static_unsigned_max< 9, 14>::value) == 14 );
- BOOST_TEST( (static_unsigned_min<14, 9>::value) == 9 );
- BOOST_TEST( (static_unsigned_max<14, 9>::value) == 14 );
+ BOOST_CHECK( (static_unsigned_min< 9, 14>::value) == 9 );
+ BOOST_CHECK( (static_unsigned_max< 9, 14>::value) == 14 );
+ BOOST_CHECK( (static_unsigned_min<14, 9>::value) == 9 );
+ BOOST_CHECK( (static_unsigned_max<14, 9>::value) == 14 );
// Two negatives
cout << "Doing tests with two negative values." << endl;
- BOOST_TEST( (static_signed_min< -8, -101>::value) == -101 );
- BOOST_TEST( (static_signed_max< -8, -101>::value) == -8 );
- BOOST_TEST( (static_signed_min<-101, -8>::value) == -101 );
- BOOST_TEST( (static_signed_max<-101, -8>::value) == -8 );
+ BOOST_CHECK( (static_signed_min< -8, -101>::value) == -101 );
+ BOOST_CHECK( (static_signed_max< -8, -101>::value) == -8 );
+ BOOST_CHECK( (static_signed_min<-101, -8>::value) == -101 );
+ BOOST_CHECK( (static_signed_max<-101, -8>::value) == -8 );
// With zero
cout << "Doing tests with zero and a positive or negative value." << endl;
- BOOST_TEST( (static_signed_min< 0, 14>::value) == 0 );
- BOOST_TEST( (static_signed_max< 0, 14>::value) == 14 );
- BOOST_TEST( (static_signed_min<14, 0>::value) == 0 );
- BOOST_TEST( (static_signed_max<14, 0>::value) == 14 );
+ BOOST_CHECK( (static_signed_min< 0, 14>::value) == 0 );
+ BOOST_CHECK( (static_signed_max< 0, 14>::value) == 14 );
+ BOOST_CHECK( (static_signed_min<14, 0>::value) == 0 );
+ BOOST_CHECK( (static_signed_max<14, 0>::value) == 14 );
- BOOST_TEST( (static_unsigned_min< 0, 14>::value) == 0 );
- BOOST_TEST( (static_unsigned_max< 0, 14>::value) == 14 );
- BOOST_TEST( (static_unsigned_min<14, 0>::value) == 0 );
- BOOST_TEST( (static_unsigned_max<14, 0>::value) == 14 );
+ BOOST_CHECK( (static_unsigned_min< 0, 14>::value) == 0 );
+ BOOST_CHECK( (static_unsigned_max< 0, 14>::value) == 14 );
+ BOOST_CHECK( (static_unsigned_min<14, 0>::value) == 0 );
+ BOOST_CHECK( (static_unsigned_max<14, 0>::value) == 14 );
- BOOST_TEST( (static_signed_min< 0, -101>::value) == -101 );
- BOOST_TEST( (static_signed_max< 0, -101>::value) == 0 );
- BOOST_TEST( (static_signed_min<-101, 0>::value) == -101 );
- BOOST_TEST( (static_signed_max<-101, 0>::value) == 0 );
+ BOOST_CHECK( (static_signed_min< 0, -101>::value) == -101 );
+ BOOST_CHECK( (static_signed_max< 0, -101>::value) == 0 );
+ BOOST_CHECK( (static_signed_min<-101, 0>::value) == -101 );
+ BOOST_CHECK( (static_signed_max<-101, 0>::value) == 0 );
// With identical
cout << "Doing tests with two identical values." << endl;
- BOOST_TEST( (static_signed_min<0, 0>::value) == 0 );
- BOOST_TEST( (static_signed_max<0, 0>::value) == 0 );
- BOOST_TEST( (static_unsigned_min<0, 0>::value) == 0 );
- BOOST_TEST( (static_unsigned_max<0, 0>::value) == 0 );
+ BOOST_CHECK( (static_signed_min<0, 0>::value) == 0 );
+ BOOST_CHECK( (static_signed_max<0, 0>::value) == 0 );
+ BOOST_CHECK( (static_unsigned_min<0, 0>::value) == 0 );
+ BOOST_CHECK( (static_unsigned_max<0, 0>::value) == 0 );
- BOOST_TEST( (static_signed_min<14, 14>::value) == 14 );
- BOOST_TEST( (static_signed_max<14, 14>::value) == 14 );
- BOOST_TEST( (static_unsigned_min<14, 14>::value) == 14 );
- BOOST_TEST( (static_unsigned_max<14, 14>::value) == 14 );
+ BOOST_CHECK( (static_signed_min<14, 14>::value) == 14 );
+ BOOST_CHECK( (static_signed_max<14, 14>::value) == 14 );
+ BOOST_CHECK( (static_unsigned_min<14, 14>::value) == 14 );
+ BOOST_CHECK( (static_unsigned_max<14, 14>::value) == 14 );
- BOOST_TEST( (static_signed_min< -101, -101>::value) == -101 );
- BOOST_TEST( (static_signed_max< -101, -101>::value) == -101 );
+ BOOST_CHECK( (static_signed_min< -101, -101>::value) == -101 );
+ BOOST_CHECK( (static_signed_max< -101, -101>::value) == -101 );
return boost::exit_success;
}
From 4935afbcd4a10c29e0510bfe3a8861fb806a9676 Mon Sep 17 00:00:00 2001
From: nobody
Date: Tue, 24 Jul 2007 19:28:14 +0000
Subject: [PATCH 04/31] This commit was manufactured by cvs2svn to create tag
'Version_1_34_1'.
[SVN r38286]
From b162db6b72f3f8c5a95ad00efce682f1ee0bafed Mon Sep 17 00:00:00 2001
From: Beman Dawes
Date: Fri, 5 Oct 2007 14:25:06 +0000
Subject: [PATCH 05/31] Starting point for releases
[SVN r39706]
From 559b44c259917399670ba872c04744384627a8f6 Mon Sep 17 00:00:00 2001
From: Beman Dawes
Date: Sun, 25 Nov 2007 18:07:19 +0000
Subject: [PATCH 06/31] Full merge from trunk at revision 41356 of entire
boost-root tree.
[SVN r41369]
---
include/boost/integer.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/boost/integer.hpp b/include/boost/integer.hpp
index aa8b22c..dc57dff 100644
--- a/include/boost/integer.hpp
+++ b/include/boost/integer.hpp
@@ -34,7 +34,7 @@ namespace boost
template< int Category > struct int_least_helper {}; // default is empty
// specializatons: 1=long, 2=int, 3=short, 4=signed char,
- // 6=unsigned long, 7=unsigned int, 8=unsigned short, 9=unsigned long
+ // 6=unsigned long, 7=unsigned int, 8=unsigned short, 9=unsigned char
// no specializations for 0 and 5: requests for a type > long are in error
template<> struct int_least_helper<1> { typedef long least; };
template<> struct int_least_helper<2> { typedef int least; };
From 19ed0e48e0a409d9f3b45f010e10a04867a4b5ca Mon Sep 17 00:00:00 2001
From: Beman Dawes
Date: Sun, 25 Nov 2007 18:38:02 +0000
Subject: [PATCH 07/31] Full merge from trunk at revision 41356 of entire
boost-root tree.
[SVN r41370]
---
cstdint.htm | 11 +++++++----
doc/integer_mask.html | 9 ++++-----
doc/static_min_max.html | 9 ++++-----
index.html | 9 +++++++--
integer.htm | 9 ++++-----
integer_traits.html | 9 +++++++--
6 files changed, 33 insertions(+), 23 deletions(-)
diff --git a/cstdint.htm b/cstdint.htm
index 43b828f..9492827 100644
--- a/cstdint.htm
+++ b/cstdint.htm
@@ -2,7 +2,7 @@
-
+
Header boost/cstdint.hpp
@@ -69,10 +69,13 @@ representing any value of any signed integer type.
capable of representing any value of any unsigned integer type.
These types are required.
-Revised 19 Aug 2001
+
Revised 06 Nov 2007
-
+© Copyright Beman Dawes 2000
+
+Distributed under the Boost Software License, Version 1.0. See
+www.boost.org/LICENSE_1_0.txt