This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: bitset bit references not quite working in 2.95.2
- To: <gcc-bugs at gcc dot gnu dot org>
- Subject: Re: bitset bit references not quite working in 2.95.2
- From: "Jeff Greif" <jmg at trivida dot com>
- Date: Tue, 7 Mar 2000 14:05:53 -0800
Since Feb 28, my bug report based on the example below seems to have evoked
no response. In an effort to stir some interest again, I'll provide a
workaround: use
bar.set(3); in place of bar[3]=true;
Jeff
----------------------------------------------------------------------------
Making the reference to a single bit of the bitset fails to compile in
the code below.
#include <climits>
#include <bitset>
void foo()
{
std::bitset<7> bar(false);
bar[3] = true;
}