The formal review of Dynamic Bitset by Chuck Alison and Jeremy
Siek
will commence on Saturday June 8th and run through Monday, June
17th.
The library is currently available at
<http://groups.yahoo.com/group/boost/files/dyn_bitset.tar.gz>
Below is an excerpt from the library's documentation:
The dyn_bitset class represents a set of bits. It provides
accesses to the value of individual bits via an operator[]
and provides all of the bitwise operators that one can
apply to builtin integers, such as operator&& and
operator<<. The number of bits in the set is specified at
runtime via a parameter to the constructor of the
dyn_bitset.
Each bit represents either the Boolean value true (set) or
false (reset). To toggle a bit is to change the value to
true if it is false and to false if it is true. Each bit
has a non-negative position pos. The position pos == 0
corresponds to the least significant bit and pos == size()
- 1 is the most significant bit. When converting an
instance of dyn_bitset to or from an unsigned long, the bit
position pos corresponds to the bit value 1 << pos.
The dyn_bitset class is nearly identical to the std::bitset
class. The difference is that the size of the dyn_bitset
(the number of bits) is specified at run-time during the
construction of a dyn_bitset object, whereas the size of a
std::bitset is specified at compile-time through an integer
template parameter.
For information about submitting a Formal Review, see
http://www.boost.org/more/formal_review_process.htm
Please try out the library so that you will be prepared to to
say whether or not you think the library should be accepted by
Boost during the upcoming review period next week
Compiler notes: This library has been tested using the
following compiler platforms:
Gcc 2.95 and 3.01
Kai C++
Metrowerks Codewarrior 8 (beta, Mac)
The library presently requires template friend support and
therfore is known not to compile with CodeWarrior 7.2.
The library has not been tested with VC++ or Borland.
The Formal Review manager will be Mat Marcus.
Hi,
I am a new user of the boost libs, so sorry for the supid questions.
I am running into a compilation error while trying to compile listing
2 and listing 3 from Bill Kempf's article at
http://www.cuj.com/articles/2002/0205/0205a/0205a.htm, giving simple
usage examples of boost threads.
1.
When I compile listing 2, the compiler chokes on the lines
boost::thread thrd1(count(1));
boost::thread thrd2(count(2));
with the errors
listing2.C:27: no matching function for call to `count (int)'
listing2.C:28: no matching function for call to `count (int)'
As you can see in the listing online, count is defined as 'struct
count{...}'
Upon perusal of threah.hpp, I see that, indeed, the class thread
constructor is looking for a function, not a struct or class as count
is defined in this code. Am I missing something, or is the code in
error?
2.
In listing 2, I get the following errors when compiling:
listing3.C:29: no matching function for call to `bind ({unknown
type}, int)'
listing3.C:31: no matching function for call to `bind ({unknown
type}, int)'
This is in response to the lines:
boost::thread thrd1(boost::bind(&count, 1));
boost::thread thrd2(boost::bind(&count, 2));
Again, am I missing something or what? I have pasted the code
directly from the source as provided online.
TIA for your help
Richard