Boost logo

Boost :

From: Valentin Bonnard (Bonnard.V_at_[hidden])
Date: 1999-08-31 12:12:58


Kevlin Henney wrote:
>
> Valentin Bonnard wrote:
> > Greg Colvin wrote:
> [...]
> > Doesn't that break the ODR? Or am I confused again?
>
> If MY_DEBUG is defined the same way in all headers, it's
> fine. If not, _and_ you are using headers which use the
> macro, then it breaks the ODR.
>
> I leave the responsabillity to define debug_mode
> consistently to the user.
>
> So we're back where we started?

No. We offer the choice: debug_mode can be
a macro (back where we started), a constant,
or a non constant variable.

This choice includes ways to do it right,
and ways to do it wrong.

-- 
Valentin Bonnard

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