In "FileStreamDataStream::eof()", it use "return mInStream->eof()". It's not correct!
Further Reading:
http://stackoverflow.com/questions/3712 ... f-the-file
http://stackoverflow.com/questions/6283 ... s-eof-in-c
http://www.parashift.com/c++-faq-lite/i ... d-eof.html
I think "return mInStream->peek() == std::istream::traits_type::eof();" to check EOF is better.
What's your advice?
