This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: bitset bit references not quite working in 2.95.2


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;
    }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]