![]() |
Boost : |
From: Daryle Walker (darylew_at_[hidden])
Date: 2001-01-26 11:46:12
on 1/23/01 1:45 PM, Ed Brey at brey_at_[hidden] wrote:
> From: "Jens Maurer" <Jens.Maurer_at_[hidden]>
>>
>>> In that case, the results at stdout are perfectly informative; I don't
>>> really need an .html result. Could we just skip it?
>>
>> Difficult. All of regression.cpp depends on having a valid ostream,
>> and there is no "nullstream" or similar. And ofstream("/dev/null") is
>> not portable.
>
> Sounds like a call for a boost library (or library portion). Seems like
> an easy one, since the base stream buffer class does nothing by default.
[TRUNCATE over-simplified versions of null-stream(buf) classes]
I already have something like this in the Boost vault, in the "more_io"
package. I don't bother making external objects of those classes, though.
(BTW, you have to override the output functionality; the default rejects any
output, you need it to take any output without complaint [or real
processing].)
-- Daryle Walker Mac, Internet, and Video Game Junkie darylew AT mac DOT com
Boost list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk