$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [IOStreams] Is such a behaviour considered as bug
From: Daniel James (dnljms_at_[hidden])
Date: 2011-08-12 17:37:19
On 11 August 2011 14:22, Ovanes Markarian <om_boost_at_[hidden]> wrote:
>
> If the defined stream is only 2 bytes long why is 2 a valid stream position?
There needs to be an offset for the end of the stream. I'm actually
not sure if it should be -1 for larger values though.
> Why is eof always false? Do you think this behavior is buggy?
IIRC in streams eof is only set when you try to read past the end of the file.