|
Boost Users : |
From: Joaquín Mª López Muñoz (joaquin_at_[hidden])
Date: 2007-02-27 07:10:53
Manuel Jung ha escrito:
> Am 26.02.2007, 23:32 Uhr, schrieb Joaquin M Lopez Munoz <joaquin_at_[hidden]>:
>
> > Manuel Jung <gzahl <at> arcor.de> writes:
[...]
> > #if !defined(NDEBUG)
> > #define BOOST_MULTI_INDEX_ENABLE_INVARIANT_CHECKING
> > #define BOOST_MULTI_INDEX_ENABLE_SAFE_MODE
> > #endif
[...]
> > If so, you've got a problem: these macros have to be
> > defined/undefined *globally*. i.e. you cannot compile one
> > .cpp with them turned on and other without them: object
> > incompatibility ensues.
>
> Is this in the documentation and i didn realize? Maybe it should be said
> explicit, if its not in there.
It is stated in the docs, if a tad too laconically, maybe:
"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."
in
http://www.boost-consulting.com/boost/libs/multi_index/doc/tutorial/debug.html
.
The key word here is "globally". Perhaps I should be more explicit
about this issue.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
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