Boost logo

Boost :

Subject: Re: [boost] [system] Boost.Timer replacement
From: Beman Dawes (bdawes_at_[hidden])
Date: 2011-09-13 12:24:01


Greg wrote:

> The first question is: if my program reaches 'assert(0);', how much
> information is that going to give me about what went wrong?  Actually,
> I quickly tested this and it gives me the line number and function
> name, so that's not too bad.  Although I would definitely prefer to be
> able to determine the cause of the assertion failure by looking at the
> content of the assertion that failed, because it saves me the steps of
> opening a source file and looking around.

Yeah, that assert should certainly be replaced by something more informative.

Will do.

> The second question is, does this allow using a format string
> consisting of a single letter from the set ("wustp") followed by a
> NULL as a format string (e.g. "w\0")?  It seems like it does, but
> again I haven't yet tested the code.  I'm not sure that it's a
> problem, but it just stood out since it doesn't seem to fit the
> intent.

Works as expected. So does "%w\0", which is what I suspect you meant to write:-)

--Beman


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