This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: std::num_put<char, char*>


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]