The prototype for an input stream is: explicit basic_istream( basic_streambuf<Elem, Tr> *_Strbuf <> );
That is, every stream must be bound to a streambuf when it is constructed. Same goes for output streams. otherthings such as ifstream, cin, etc. are derivations, specializations and/or typedefs based on the above. The streambuf implementation can be selected independantly of the stream formating. This the source of the appeal of enhancing streambuf. Robert Ramey >"Reece Dunn" <[EMAIL PROTECTED]> writes >Also, is there a way for you to bind a streambuf to a stream? I have not had >any direct experience with stream buffers, so I don't know. If not, it would >be a good idea to have an I/O stream that can have a custom stream buffer, >that way you can use stream facilities on these buffers, thus gaining access >to compression, encription, etc. _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost