Compare commits

..

4 Commits

Author SHA1 Message Date
nobody
176098bae9 This commit was manufactured by cvs2svn to create tag
'Version_1_32_0'.

[SVN r26264]
2004-11-19 19:19:18 +00:00
Aleksey Gurtovoy
f4b9c8afe7 commented out undocumented additions
[SVN r26240]
2004-11-19 04:51:52 +00:00
Aleksey Gurtovoy
639fbca153 move TODO into comments
[SVN r26239]
2004-11-19 04:44:10 +00:00
nobody
dfdbca0610 This commit was manufactured by cvs2svn to create branch 'RC_1_32_0'.
[SVN r25797]
2004-10-20 08:26:43 +00:00
8 changed files with 63 additions and 64 deletions

21
Jamfile Normal file
View File

@@ -0,0 +1,21 @@
subproject libs/dynamic_bitset ;
unit-test dyn_bitset_unit_tests1
: dyn_bitset_unit_tests1.cpp
: <include>$(BOOST_ROOT)
;
unit-test dyn_bitset_unit_tests2
: dyn_bitset_unit_tests2.cpp
: <include>$(BOOST_ROOT)
;
unit-test dyn_bitset_unit_tests3
: dyn_bitset_unit_tests3.cpp
: <include>$(BOOST_ROOT)
;
unit-test dyn_bitset_unit_tests4
: dyn_bitset_unit_tests4.cpp
: <include>$(BOOST_ROOT)
;

View File

@@ -1,10 +1,3 @@
#
# Copyright Vladimir Prus 2004
#
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
test-suite dynamic_bitset :

View File

@@ -966,8 +966,7 @@ struct bitset_test {
bool did_throw = false;
try {
static_cast<void>
(s << b);
s << b;
}
#if defined BOOST_OLD_IOSTREAMS
catch(...) {
@@ -1042,8 +1041,7 @@ struct bitset_test {
const std::ios::iostate except = is.exceptions();
bool has_stream_exceptions = true;
try {
static_cast<void>
(is >> b);
is >> b;
}
catch(const std::ios::failure &) {
did_throw = true;

View File

@@ -71,7 +71,7 @@ void run_test_cases( BOOST_EXPLICIT_TEMPLATE_TYPE(Block) )
std::ios::eofbit | std::ios::failbit
};
static std::string strings[] = {
std::string strings[] = {
std::string(""),
std::string("0"),
std::string("1"),
@@ -179,7 +179,7 @@ void run_test_cases( BOOST_EXPLICIT_TEMPLATE_TYPE(Block) )
const std::string spaces = "\t\n "; //"\t\n\v\f ";
const std::string long_string = get_long_string();
/*const*/ static std::string strings[] = {
/*const*/ std::string strings[] = {
// NOTE: "const" gives the usual problems with Borland
// (in Tests::stream_extractor instantiation)

20
example/Jamfile Normal file
View File

@@ -0,0 +1,20 @@
exe timing_tests
: timing_tests.cpp
: <include>$(BOOST_ROOT)
;
exe example1
: example1.cpp
: <include>$(BOOST_ROOT)
;
exe example2
: example2.cpp
: <include>$(BOOST_ROOT)
;
exe example3
: example3.cpp
: <include>$(BOOST_ROOT)
;

View File

@@ -151,7 +151,7 @@ namespace boost {
// for static_asserts
template <typename T>
struct dynamic_bitset_allowed_block_type {
enum { value = (T(-1) > 0) }; // ensure T has no sign
enum { value = T(-1) > 0 }; // ensure T has no sign
};
template <>

View File

@@ -419,21 +419,6 @@ BOOST_DYNAMIC_BITSET_PRIVATE:
};
#if BOOST_WORKAROUND( __IBMCPP__, <=600 )
// Workaround for IBM's AIX platform.
// See http://comments.gmane.org/gmane.comp.lib.boost.user/15331
template<typename Block, typename Allocator>
dynamic_bitset<Block, Allocator>::block_width_type const
dynamic_bitset<Block, Allocator>::bits_per_block;
template<typename Block, typename Allocator>
dynamic_bitset<Block, Allocator>::block_width_type const
dynamic_bitset<Block, Allocator>::ulong_width;
#endif
// Global Functions:
// comparison
@@ -462,18 +447,15 @@ std::ostream& operator<<(std::ostream& os,
template <typename Block, typename Allocator>
std::istream& operator>>(std::istream& is, dynamic_bitset<Block,Allocator>& b);
#else
// NOTE: Digital Mars wants the same template parameter names
// here and in the definition! [last tested: 8.48.10]
//
template <typename Ch, typename Tr, typename Block, typename Alloc>
std::basic_ostream<Ch, Tr>&
operator<<(std::basic_ostream<Ch, Tr>& os,
const dynamic_bitset<Block, Alloc>& b);
template <typename CharT, typename Traits, typename Block, typename Allocator>
std::basic_ostream<CharT, Traits>&
operator<<(std::basic_ostream<CharT, Traits>& os,
const dynamic_bitset<Block, Allocator>& b);
template <typename Ch, typename Tr, typename Block, typename Alloc>
std::basic_istream<Ch, Tr>&
operator>>(std::basic_istream<Ch, Tr>& is,
dynamic_bitset<Block, Alloc>& b);
template <typename CharT, typename Traits, typename Block, typename Allocator>
std::basic_istream<CharT, Traits>&
operator>>(std::basic_istream<CharT, Traits>& is,
dynamic_bitset<Block, Allocator>& b);
#endif
// bitset operations

View File

@@ -1,24 +1,9 @@
<!--
Copyright Beman Dawes 2002
Copyright Gennaro Prota 2006
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="refresh" content="0; URL=dynamic_bitset.html" />
<title></title>
</head>
<body>
Automatic redirection failed, please go to <a href=
"dynamic_bitset.html">dynamic_bitset.html</a>.
</body>
</html>
<html>
<head>
<meta http-equiv="refresh" content="0; URL=dynamic_bitset.html">
</head>
<body>
Automatic redirection failed, please go to
<a href="dynamic_bitset.html">dynamic_bitset.html</a>.
</body>
</html>