c++/3795: The "bitset" template from the STL doesn't work properly
pme@gcc.gnu.org
pme@gcc.gnu.org
Wed Jul 25 13:45:00 GMT 2001
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
More information about the Gcc-bugs
mailing list