Re: Redirecting cout to a TextBuffer



2008/5/12 Charles McLachlan <cim20 metropolis-data co uk>:
> If the above code works (its an interesting idea that I have not seen
> before), then my advice would be subclass your own streambuf. You'll need to
> overload the the sync and overflow members. These have slightly weird
> actions and (on first viewing) appear non trivial.

I haven't had the time to actually implement this, but it seems just
like the approach I was looking for.

Thanks,
Søren


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]