$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Valentin Bonnard (Bonnard.V_at_[hidden])
Date: 1999-08-31 12:19:31
Valentin Bonnard wrote:
>
> Beman Dawes wrote:
>
> > The real question is whether to stick with assert() or try to develop
> > something along the lines of assertion<>(). It seems to me that
> > assertion<>() meets identified needs:
> >
> > * Code usually optimized away if not active.
>
> Need a compile time constant to do that.
>
> > * Avoids ODR violations.
>
> Need an external variable initialised only once.
>
> These tend to conflict.
>
> I can see a solution, but it depends on the way #include
> works:
>
> /users/bonnard/test.cc:
> > #include <boost/assert.hpp>
>
> /usr/include/boost/assert.hpp:
> > #include "debug_mode.hpp"
>
> /users/bonnard/debug_mode.hpp:
> > extern const bool debug_mode;
> > const bool debug_mode = true;
Should be
/users/bonnard/debug_mode.hpp:
> extern const bool debug_mode = true
/users/bonnard/debug_mode.cpp:
> #include "debug_mode.hpp"
> const bool debug_mode;
sorry
-- Valentin Bonnard