Boost logo

Boost Users :

From: Manuel Jung (gzahl_at_[hidden])
Date: 2007-02-27 07:15:53


Am 27.02.2007, 13:10 Uhr, schrieb Joaquín Mª López Muñoz <joaquin_at_[hidden]>:

> 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."
>

Yeah, i read this lines before, but didnt realize something that bad could
happen if im not defining globally.

> 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

Greetings
Manuel Jung

-- 
Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/

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