Boost logo

Boost Users :

From: Fujinobu Takahashi (fjtaka_at_[hidden])
Date: 2005-09-03 06:48:41


Hello Cory-san,

Thank you for your prompt advice for my basic question.
> use the initializer list to call their constructors instead:
>
> multi_bitsets() : db1(20,1ul), db2(20,1ul) {
> }

I tried and the result is as follows:

$ g++ multi_bitset_test00.cpp
multi_bitset_test00.cpp:38: error: expected unqualified-id before ')' token
multi_bitset_test00.cpp:38: error: expected `,' or `;' before ':' token

I am very helpful to gett any comments or solution for the error.
Very thanks,

Fuji

On Sat, 3 Sep 2005 00:17:43 -0700
Cory Nelson <phrosty_at_[hidden]> wrote:

> 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