
27 Feb
2007
27 Feb
'07
6:46 p.m.
On 2/27/07, Manuel Jung
"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