
25 Oct
2004
25 Oct
'04
3:28 p.m.
John Torjo wrote:
How? The difference between:
locale::global(locale(), new vector_io_facet(.......))
and
cout << vector_io_format(......)
is in interface, not implementation.
What I meant was that you can have an interface similar to:
set_format( std::cout, "[%,%]" /* or whatever */);
In this case, whether the implementation uses locales or not can be an implementation detail.
You can't hide it completely -- you'll either have per-stream setting or global setting. - Volodya