Boost logo

Boost Users :

Subject: [Boost-users] [iostreams] restriction device/filter
From: Borko Jandras (bjandras_at_[hidden])
Date: 2011-01-26 08:20:02


Hello,

I'm looking at the implementation of the "restriction" device, from
Boost.Iostreams library, which provides access to a subsequence of the
original device.

When it reaches the end of the input subsequence, the restriction device
start performing read()'s of size zero on the original device. Shouldn't
it be returning an end-of-sequence marker (EOF) instead?

I am using a restriction device as source parameter for the
iostreams::copy function and this always results in an infinite loop. Am
I doing something wrong?

Thanks!

- Borko


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net