J
Johannes Barop
Hello,
i try to implement a streambuffer. I overwrote streambuf:verflow() and
streambuf::xsputn(). Both are protected and virtual
(http://www.cplusplus.com/ref/iostream/streambuf/).
But somehow my OutBuf::xsputn() is not beeing used. But the orginal
basic_streambuf::xsputn() calls my OutBuf:verflow().
http://pastebin.com/483016 - OutBuf.h
http://pastebin.com/483018 - OutBuf.cpp
http://pastebin.com/483022 - gdb - Output
Why basic_streambuf::xsputn() is called instead of OutBuf::xsputn() ?
i try to implement a streambuffer. I overwrote streambuf:verflow() and
streambuf::xsputn(). Both are protected and virtual
(http://www.cplusplus.com/ref/iostream/streambuf/).
But somehow my OutBuf::xsputn() is not beeing used. But the orginal
basic_streambuf::xsputn() calls my OutBuf:verflow().
http://pastebin.com/483016 - OutBuf.h
http://pastebin.com/483018 - OutBuf.cpp
http://pastebin.com/483022 - gdb - Output
Why basic_streambuf::xsputn() is called instead of OutBuf::xsputn() ?