Boost logo

Boost :

From: Dave Abrahams (abrahams_at_[hidden])
Date: 1999-08-31 21:35:58


> The ODR:
>
> - the ODR requires that inline/template functions are
> defined the same way in all TU
>
> - it means that for assertions to be usable in
> inline/template functions, then must be TU-independant
>
> - for <cassert> it means that NDEBUG should get the
> same value in all TUes

Technically, it means that NDEBUG must have the same value each time a
(inline/template) function which includes an assert() is processed by the
compiler. In practice, though, it is hard to insure this reliably without
simply giving it the same value in all TUs, so it may amount to the same
thing.

-Dave


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