Boost logo

Boost :

From: Andras Erdei (ccg_at_[hidden])
Date: 2002-04-11 10:25:19

On Thu, 11 Apr 2002 14:39:32 +0200, "Hoeffner, Detlef" <Detlef.Hoeffner_at_[hidden]> wrote:

>> I would like to keep as simple and primitive as possible
>> for performance reasons, but there can be a separate interface
>> for this kind of general usage, if there really is a
>> demand.

>From my viewpoint this seems to be a very simple as well as very reusable
>design since it provides a hight integration in the std iostream library.
>Why do you believe it is not simple?

At the sink level there should be no buffering (e.g. my file
sink flushes the content at every write, so in case of a crash
you can see where it actually went haywire, modulo OS caching
and heavy crahes), and the same sinks should be usable in release
code. In release mode only the memory sink is active, and is does
a simple memcpy() (modulo circular buffer), and the logging is
restricted to single char *s. This means that the sinks only accept
char *s -- in release mode those come from the string buffers .str().c_str().

OTOH i might be misunderstand what you are proposing.
Can you elaborate a bit ?


Boost list run by bdawes at, gregod at, cpdaniel at, john at