Boost logo

Boost Users :

From: Gottlob Frege (gottlobfrege_at_[hidden])
Date: 2007-02-27 13:46:08


On 2/27/07, Manuel Jung <gzahl_at_[hidden]> wrote:
> >
> > "Boost.MultiIndex safe mode is set by globally defining the macro
> > BOOST_MULTI_INDEX_ENABLE_SAFE_MODE."
> >
> > "The so called invariant-checking mode of Boost.MultiIndex can
> > be set by globally defining the macro
> > BOOST_MULTI_INDEX_ENABLE_INVARIANT_CHECKING."
> >
>
> Yeah, i read this lines before, but didnt realize something that bad could
> happen if im not defining globally.
>

This is not particular to B.MI. It is a common pattern for
customizing libraries. You should probably invert your 'rule' - ie
in general, it would probably be safer to assume #defines like this
need to be global, unless explicitly documented otherwise.

Tony


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net