
8 Mar
2005
8 Mar
'05
10:34 p.m.
Output most probably will look like:
a, , v, c, d, ,
Which should be enough to restore it back
The usual way to read vector<X> _today_ is
istream_iterator<X> first( is ), last; vector<X> v( first, last );
It only works with whitespace as a separator.
Maybe we need to remedy this hmm... inflexibility. How about boost::istream_iterator that wraps token_iterator and accepts separator? Gennadiy