Boost logo

Boost :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2005-02-28 20:10:56


Okay Brian,

The following apparently works, but when OutputDebugString is called I don't see
any output. I'm not sure if the previous version worked or not; I've run out of
time for now.

Jonathan

struct debug_out_sink : boost::iostreams::sink {
    debug_out_sink ()
    {
        using namespace boost::iostreams;
        chain_.push(newline_filter(newline::windows));
        chain_.push(debug_out_sink_impl());
    }

    void write(const char* s, std::streamsize n)
    {
        chain_.write(s, n);
    }

    boost::iostreams::detail::chain<boost::iostreams::output> chain_;
};


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk