I apologize, if i have missed something.
Reading the documentation about boost::iostreams library I could not find the
information which return type the boost::iostreams::stream's class is giving
me calling read(). I searched through the headers and every read() found
returns std::streamsize, which sounds reasonable to me.
I was surprised, that the code below does not compile
--------start code ----------
#include