--- /usr/src/contrib/libstdc++/sstream Mon Aug 25 15:13:10 2003 +++ /usr/src/contrib/libstdc++/sstream Mon Aug 25 15:30:05 2003 @@ -36,6 +36,27 @@ { class stringbuf : public streambuf { + private: + void + stringbuf_sync(streamsize i, streamsize o) + { + if (mode & ios::in) + setg(stream, stream + i, stream + stream_len); + if (mode & ios::out) + { + setp(stream, stream + stream_len); + pbump(o); + } + } + void + stringbuf_init() + { + if (mode & ios::ate) + stringbuf_sync(0, stream_len); + else + stringbuf_sync(0, 0); + } + public: typedef char char_type; typedef int int_type; @@ -198,27 +219,6 @@ { pos_type ret = seekoff(sp, ios::beg, which); return ret; - } - - private: - void - stringbuf_sync(streamsize i, streamsize o) - { - if (mode & ios::in) - setg(stream, stream + i, stream + stream_len); - if (mode & ios::out) - { - setp(stream, stream + stream_len); - pbump(o); - } - } - void - stringbuf_init() - { - if (mode & ios::ate) - stringbuf_sync(0, stream_len); - else - stringbuf_sync(0, 0); } private: