On one hand I have a nice c++ function taking an istream& as parameter.
On the other hand I have a old school home made stream of bytes (kind of open/read/close stuff).
And, of course, I want to plug the second into the first.
I tried to create a derived class from streambuf and pass it to the istream's constructor. But it seems that streambuf's methods are not virtual...
What is the right way to do it ? Thanks !