This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/3795: The "bitset" template from the STL doesn't work properly
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, martin dot rieger at mmr2 dot sianum dot de, pme at gcc dot gnu dot org
- Subject: Re: c++/3795: The "bitset" template from the STL doesn't work properly
- From: pme at gcc dot gnu dot org
- Date: 25 Jul 2001 20:45:14 -0000
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