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: c++/3795: The "bitset" template from the STL doesn't work properly


Synopsis: The "bitset" template from the STL doesn't work properly

State-Changed-From-To: analyzed->closed
State-Changed-By: pme
State-Changed-When: Wed Jul 25 13:45:12 2001
State-Changed-Why:
    
    I mentioned that (1) was not a bug, and showed
    a workaround for (2).  Turns out that it isn't
    just a workaround; you have to do it that way.
    (Blech.)  My passing thought for improvement was
    
      [one must write]
      bs.to_string<char,char_traits<char>,allocator<char> >()
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      to instantiate the member template function.
      Although I would argue that the signature
      preceeding [23.3.5.2]/33 should allow the second
      and third template arguments to have default
      values, like basic_string<char> does, so that
    
      bs.to_string<char>()
    
      could work.
    
    Useful, but alas, invalid.  [14.1]/9 forbids
    exactly that, but I didn't think of it until
    today.  So, no bugs all around.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3795&database=gcc


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