Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-04-14 10:42:59

From: "David Abrahams" <abrahams_at_[hidden]>

> > Anyway, I think that the basic idea of having two
> > precondition macros is sound.
> Maybe for some people. My approach to programming is based on making
> absolute distinctions wherever possible. So many design choices can be
> with so many degrees of freedom that I need ways to simplify my world. I
> find ways to settle things so I don't have to keep thinking about them (I
> think you can see this in my approach to exception-safety). Asking me to
> decide whether each precondition check might compete for cycles with the
> rest of my code, or whether it might be the straw that finally pushes my
> inner loop out of the cache will make it harder for me to write code and
> will be a disincentive to add the precondition check at all.

If you want to avoid taking responsibility for the decision, you can always
label the check as 'costly.'

Peter Dimov
Multi Media Ltd.

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