[Dune] [PATCH] [oparbufstream] Stream adaptor class for parallel debugging.

Jö Fahlke jorrit at jorrit.de
Wed Nov 10 13:11:22 CET 2010


Am Wed, 10. Nov 2010, 08:08:14 +0100 schrieb Christian Engwer:
> how would this new stream class integrate with the debugstreams? 
> I think, if we provide such functionality, we should incorporate it
> into the existing IO-infrastructure.

It doesn't, because the debugstreams don't inherit from std::basic_ostream.
This restriction can be lifted however to support anything that has a method
write(charT* data, size_t size)[1].  But then either the template parameters
will become more complicated or we have to use type-erasure.  And of course
the write() method has to be added to the debugstreams in any case.

[1] This would not include streambuffers, they have a method sputn(const
    char_type* s, streamsize n) instead.

Jö.

-- 
F: Was ist der Sinn des Menschen?
A: Die Menschheit voranzubringen.
F: Aber was ist der Sinn der Menschheit?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20101110/a973d0e9/attachment.sig>


More information about the Dune mailing list