$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: David Abrahams (dave_at_[hidden])
Date: 2005-10-18 07:24:34
"Mats Eklund" <matek994_at_[hidden]> writes:
> Hello,
>
> does anybody know whether there is something fundamentally wrong
> with designing an istream iterator that conforms with the forward,
> or even random access, iterator concepts?
Nope; there's nothing wrong with it. It can get tricky, though: to
meet the forward iterator requirements (operator* must return a true
reference), your iterator would have to keep an internal cache of the
element being referenced.
-- Dave Abrahams Boost Consulting www.boost-consulting.com