mirror of
https://github.com/boostorg/dynamic_bitset.git
synced 2026-01-23 05:32:09 +00:00
Compare commits
11 Commits
boost-1.32
...
boost-1.34
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ba7ccc50ae | ||
|
|
3e03a8d947 | ||
|
|
a0d66fd920 | ||
|
|
3e3d36c571 | ||
|
|
3be249a20e | ||
|
|
5f1c39cb6c | ||
|
|
7c48bf04c2 | ||
|
|
5e260f4364 | ||
|
|
896a792bec | ||
|
|
39f11e7cc0 | ||
|
|
b18fc5cd99 |
21
Jamfile
21
Jamfile
@@ -1,21 +0,0 @@
|
||||
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)
|
||||
;
|
||||
@@ -1,3 +1,10 @@
|
||||
#
|
||||
# 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 :
|
||||
|
||||
|
||||
@@ -966,7 +966,8 @@ struct bitset_test {
|
||||
|
||||
bool did_throw = false;
|
||||
try {
|
||||
s << b;
|
||||
static_cast<void>
|
||||
(s << b);
|
||||
}
|
||||
#if defined BOOST_OLD_IOSTREAMS
|
||||
catch(...) {
|
||||
@@ -1041,7 +1042,8 @@ struct bitset_test {
|
||||
const std::ios::iostate except = is.exceptions();
|
||||
bool has_stream_exceptions = true;
|
||||
try {
|
||||
is >> b;
|
||||
static_cast<void>
|
||||
(is >> b);
|
||||
}
|
||||
catch(const std::ios::failure &) {
|
||||
did_throw = true;
|
||||
|
||||
@@ -71,7 +71,7 @@ void run_test_cases( BOOST_EXPLICIT_TEMPLATE_TYPE(Block) )
|
||||
std::ios::eofbit | std::ios::failbit
|
||||
};
|
||||
|
||||
std::string strings[] = {
|
||||
static 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*/ std::string strings[] = {
|
||||
/*const*/ static std::string strings[] = {
|
||||
// NOTE: "const" gives the usual problems with Borland
|
||||
// (in Tests::stream_extractor instantiation)
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ align="middle" width="277" height="86">
|
||||
<br>
|
||||
</p>
|
||||
|
||||
<!-- BEGIN TODO -->
|
||||
<!-- BEGIN TODO
|
||||
TODO:
|
||||
<ul>
|
||||
<li> ask to Jeremy about reference::operator& and about
|
||||
@@ -57,7 +57,7 @@ TODO:
|
||||
<br>
|
||||
Note:
|
||||
Other things to do are marked by "[gps]"
|
||||
<!-- END TODO -->
|
||||
END TODO -->
|
||||
|
||||
|
||||
<h1>dynamic_bitset<Block, Allocator></h1>
|
||||
@@ -1692,7 +1692,7 @@ it works correctly when setting exception masks on the stream.<br><br>
|
||||
<li>
|
||||
Several member functions (<tt>empty()</tt>, <tt>find_first()</tt>
|
||||
, <tt>find_next()</tt>, <tt>get_allocator()</tt>, <tt>intersects()</tt>
|
||||
, <tt>max_size()</tt>, <s><tt>reserve()</tt>, <tt>capacity()</tt></s>)
|
||||
, <tt>max_size()</tt> <!--, <tt>reserve()</tt>, <tt>capacity()</tt> -->)
|
||||
have been added.
|
||||
</li>
|
||||
<li>
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
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)
|
||||
;
|
||||
|
||||
@@ -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 <>
|
||||
|
||||
@@ -419,6 +419,21 @@ 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
|
||||
@@ -447,15 +462,18 @@ std::ostream& operator<<(std::ostream& os,
|
||||
template <typename Block, typename Allocator>
|
||||
std::istream& operator>>(std::istream& is, dynamic_bitset<Block,Allocator>& b);
|
||||
#else
|
||||
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);
|
||||
// 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_istream<CharT, Traits>&
|
||||
operator>>(std::basic_istream<CharT, Traits>& is,
|
||||
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);
|
||||
#endif
|
||||
|
||||
// bitset operations
|
||||
|
||||
33
index.html
33
index.html
@@ -1,9 +1,24 @@
|
||||
<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>
|
||||
<!--
|
||||
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>
|
||||
|
||||
Reference in New Issue
Block a user