Boost Users :
Subject: [Boost-users] return type of boost::iostreams::stream<T>::read()
From: Struebing, Axel, le-tex (axel.struebing_at_[hidden])
Date: 2008-10-12 17:53:18
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 ----------
char *buffer = new char;
std::streamsize i = istr.read(buffer,10);
and gives me:
test.cpp:7: error: invalid conversion from âvoid*â to âstd::streamsizeâ
Could someone shed a light on me, please?
Thanks in advance.
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