This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: basic_ostringstream<unsigned short> causes segmentation faults
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: "Mads" <mki at maconomy dot dk>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Wed, 24 Apr 2002 11:17:22 -0700
- Subject: Re: basic_ostringstream<unsigned short> causes segmentation faults
- Organization: Red Hat/San Francisco
- References: <E88493086664D511A1E4000103330E82FFEAB2@mail.maconomy.dk>
- Reply-to: bkoz at redhat dot com
> does it make sense to use std::basic_ostringstream<unsigned short>?
It's legal.
> Is it a bug, an unsupported feature, or a "then don't"?
It's a bug that's been fixed in 3.1 and 3.2 for a bit. Please use recent
sources. I suggest trying the 3.1 release candidate.
Nathan's comments about throwing exceptions still applies: unformatted
input will work, but formatted input will require that non-required
locale facets be present. Thus, you'll have to imbue a locale that has
them in order for formatted input to work.
-benjamin