Boost logo

Boost Users :

From: Cory Nelson (phrosty_at_[hidden])
Date: 2005-09-03 02:17:43


use the initializer list to call their constructors instead:

multi_bitsets() : db1(20,1ul), db2(20,1ul) {
}

On 9/2/05, Fujinobu Takahashi <fjtaka_at_[hidden]> wrote:
> Hello again,
>
> I enjoy to use the dynamic_bitset for the 1 bit correlation of radio
> interferometor. Very useful.
>
> But how to use the dynamic bitsets as the member data of the class?
>
> class multi_bitsets{
> const boost::dynamic_bitset<> db1(20,1ul);
> const boost::dynamic_bitset<> db2(20,1ul);
>
> this kind of code always gives me the following errors:
>
> $ g++ multi_bitset_test00.cpp
> multi_bitset_test00.cpp:19: error: expected identifier before numeric constant
> multi_bitset_test00.cpp:19: error: expected `,' or `...' before numeric constant
> multi_bitset_test00.cpp:19: error: ISO C++ forbids declaration of `parameter' with no type
>
> Please let me know how to use the dynamic bitsets as the member data of
> the class, thank you.
>
> fuji
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

-- 
Cory Nelson
http://www.int64.org

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net