rawptr_buffer::can_read()

Apr 8, 2013 at 10:07 AM
When the current position on a rawptr_buffer is at EOF, can_read() returns false. Is this the intended behaviour? Why is it different from the other types of buffers?
My problem with this is that it prevents the seekpos method to work and get back to the beginning of the buffer.
Apr 8, 2013 at 3:56 PM
Alessandro,

I'd like to say that this is a bug, but that would be somewhat dishonest. :-)

It's not a bug in that this is what I intended when I wrote the code, but clearly I didn't put enough thought into it. It's a bug when compared with reasonable behavior of the buffer.

Can you open this as an issue for us to track, please?

Niklas