Topic: 22.1.1.1.1 Proposition: Clarification of the interaction between


Author: AlbertoBarbati@libero.it (Alberto Barbati)
Date: Tue, 7 Jun 2005 23:28:47 GMT
Raw View
Krzysztof =AFelechowski wrote:
> Append the following point to 22.1.1.1.1:
>=20
> 6. The implementation of a facet of Table 52 parametrized with an=20
> InputIterator/OutputIterator should use that iterator only as character=
=20
> source/sink respectively.
> For a *_get facet, it means that the value received depends only on the=
=20
> sequence of input characters and not on how they are accessed.
> For a *_put facet, it means that the sequence of characters output depe=
nds=20
> only on the value to be formatted and not of how the characters are sto=
red.
>=20
> Motivation:
>=20
> This requirement seems obvious to me, it is the essence of code modular=
ity.=20
> I have complained to Mr. Plauger that the Dinkumware library does not=20
> observe this principle but he objected that this behaviour is not cover=
ed in=20
> the standard.
>=20

This requirement is so obvious to me either, that, frankly, I don't
understand why do you think such a clarification is needed. I don't
understand how a conforming implementation could violate such
requirement. Could you please elaborate?

Alberto

PS: about the need to access the stream's locale in addition to the
iterator, I have already answered in another thread. (Short answer: it
can't be avoided.)

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]