This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++/8616: std::string<double> ?
- From: bkoz at gcc dot gnu dot org
- To: bwheadley at earthlink dot net, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nigels at nigels dot com, nobody at gcc dot gnu dot org
- Date: 18 Nov 2002 20:33:03 -0000
- Subject: Re: libstdc++/8616: std::string<double> ?
- Reply-to: bkoz at gcc dot gnu dot org, bwheadley at earthlink dot net, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nigels at nigels dot com, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: std::string<double> ?
State-Changed-From-To: open->closed
State-Changed-By: bkoz
State-Changed-When: Mon Nov 18 12:33:02 2002
State-Changed-Why:
No, it's not. Supposedly the only non-required instantiations of standard containers are user-defined types.
As double is a built-in type, this is invalid, technically speaking. (Although supporting this is still a matter of debate.)
See:
http://gcc.gnu.org/onlinedocs/libstdc++/21_strings/howto.html#5
best,
benjamin
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8616