This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: std::num_put<char, char*>
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: eddie at mailforce dot net, libstdc++ at gcc dot gnu dot org
- Date: Mon, 11 Aug 2008 13:03:41 -0500 (CDT)
- Subject: Re: std::num_put<char, char*>
- Accept-language: en-US
- References: <1218476259.6103.18.camel@localhost>
Hi,
> According to most of what I have read, the std::num_put facet
> should function with any output iterator
Essentially right, this is Table 52.
but it appears the libstdc++
> implementation only has a specialization for std::ostreambuf_iterator.
> Is this an oversight or was it done on purpose?
On purpose. Table 51 only mandates that has_facet<num_put<char> >(loc) shall be true, for any loc either constructed or returned by locale::classic(). Nothing is said about, legal, additional, facets identified by a given locale. In principle, that is an unbounded set, one for each possible output iterator type...
Paolo.