oops, Forgot to include the streambuf child class details.
class StoreEntryStreamBuf : public std::streambuf
{
public:
StoreEntryStreamBuf(StoreEntry *anEntry) : anEntry(anEntry);
~StoreEntryStreamBuf();
protected:
virtual char overflow(char aChar = traits_type::eof());
virtual in
Package: g++
Version: 4.1.3 20070718 (prerelease)
Creating two classes that inherit from std::ostream and std::streambuf.
When used with setw and characters:
child << "some text" << std::setw(4) << "!";
only ever stores "some text"
However numerics work:
child << "some text" << std::setw(4)
2 matches
Mail list logo