Compare commits

...

11 Commits

Author SHA1 Message Date
nobody
ba7ccc50ae This commit was manufactured by cvs2svn to create tag
'Version_1_34_1'.

[SVN r38286]
2007-07-24 19:28:14 +00:00
Rene Rivera
3e03a8d947 Remove obsolete Boost.Build v1 files.
[SVN r35880]
2006-11-06 17:10:46 +00:00
Gennaro Prota
a0d66fd920 prevented spurious Digital Mars warning
[SVN r34645]
2006-07-20 22:55:07 +00:00
Gennaro Prota
3e3d36c571 added extra parentheses to workaround Digital Mars
[SVN r34644]
2006-07-20 22:52:21 +00:00
Gennaro Prota
3be249a20e workarounded absurd Digital Mars behavior
[SVN r34643]
2006-07-20 22:50:11 +00:00
Gennaro Prota
5f1c39cb6c added copyright/license notes
[SVN r34570]
2006-07-17 02:14:22 +00:00
Gennaro Prota
7c48bf04c2 added copyright/license notes; validated (XHTML 1.0 Strict)
[SVN r34569]
2006-07-17 02:09:49 +00:00
nobody
5e260f4364 This commit was manufactured by cvs2svn to create branch 'RC_1_34_0'.
[SVN r33417]
2006-03-21 02:26:31 +00:00
Markus Schöpflin
896a792bec Workaround for IBM's compiler on AIX.
[SVN r32101]
2005-12-19 10:00:51 +00:00
Douglas Gregor
39f11e7cc0 Workaround for CodeWarrior 9.4/9.5, I think
[SVN r28956]
2005-05-16 14:22:35 +00:00
Aleksey Gurtovoy
b18fc5cd99 merge RC_1_32_0 fixes
[SVN r26328]
2004-11-28 03:35:12 +00:00
9 changed files with 67 additions and 66 deletions

21
Jamfile
View File

@@ -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)
;

View File

@@ -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 :

View File

@@ -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;

View File

@@ -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)

View File

@@ -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&amp; and about
@@ -57,7 +57,7 @@ TODO:
<br>
Note:
Other things to do are marked by "[gps]"
<!-- END TODO -->
END TODO -->
<h1>dynamic_bitset&lt;Block, Allocator&gt;</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>

View File

@@ -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)
;

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,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

View File

@@ -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>