Matt Austern wrote: > There is a way out: have streambuf declare those functions as friends. [snip] Thank you very much for your message. I'll try to implement something in the future: exciting, non-trivial work! Paolo.