Re: [Boost-users] Same thing: dynamic bitset as member of struct!?
4 Sep
2005
4 Sep
'05
2:13 a.m.
Hello Bronek-san,
YATTA!
Multi bitsets Works very well.
Very helpful suggestion for me and our colleagues.
ARIGATOU GOZAIMASU.
Fuji
On Sat, 03 Sep 2005 22:33:32 +0100
Bronek Kozicki
Hello
your constructor is incorrectly defined. Following should work:
#include <iostream> #include
#include using namespace std; using namespace boost; struct multi_bitsets{ multi_bitsets() : db1(10,1ul), db2(10,2ul) {} dynamic_bitset<> db1; dynamic_bitset<> db2; };
int main() { multi_bitsets mb1; cout << "mb1.db1:" << mb1.db1 << endl; cout << "mb1.db2:" << mb1.db2 << endl; }
Best regards
B.
7007
Age (days ago)
7007
Last active (days ago)
0 comments
1 participants
participants (1)
-
Fujinobu Takahashi