
Am 27.02.2007, 13:10 Uhr, schrieb Joaquín Mª López Muñoz
Manuel Jung ha escrito:
Am 26.02.2007, 23:32 Uhr, schrieb Joaquin M Lopez Munoz
: Manuel Jung
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.ht... . 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/