This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: STL bitset
- To: Jeff Sparkes <jsparkes at internetivity dot com>
- Subject: Re: STL bitset
- From: Pasha Murat <murat at cdfsga dot fnal dot gov>
- Date: Wed, 20 Jan 1999 12:51:44 -0600 (CST)
- Cc: Pasha Murat <murat at cdfsga dot fnal dot gov>, egcs-bugs at cygnus dot com
Hi Jeff:
thanks a lot! Your help is greatly appreciated! -pasha
Jeff Sparkes writes:
> Pasha Murat wrote:
>
> > here is another problem report : I'm trying to compile
> > a simple code using STL bitset class (available in snapshots since recently)
> > on SGI IRIX 6.2.
> > ------------------------------------------------------------------------------
> > /data69/upgrade/murat>cat bugs/egcs/bug_bitset.cc
> > #include <limits.h>
> > #include <bitset>
> >
> > class A {
> > bitset<96> mask;
> > public:
> > A(){}
> > ~A(){}
> > void set_mask(int i) {mask[i] = 1; }
> > };
> > ------------------------------------------------------------------------------
... skip the diagnostics (the code apparently doesn't compile... -p.m.) ...
> You can get this to work by adding "public:" just before line 541. I suspect that
> the name which are imported there are not getting the access rights exactly the same as if they were defined there. I looked at the code, but couldn't see anything obvious. It would have to be pretty obvious for me to find it. :-)
>
> With that one change, I'm able to use bitset without problems. It's obviously just a workaround. I'm going to put together a more detailed bug report someday...