
Hi list,
I am encountering a problem with MultiIndex which can
be resolved by disabling SAFE_MODE. As I actually do
not get the problem in the code attached below I'd
like to ask for an explanation. The marked line of
code (i.e. the second iterator assignment) seems to be
responsible for blocking MultiIndex's dtor in
safe_mode.hpp:
void detach_all_iterators()
{
for(safe_iterator_base*
it=header.next;it;it=it->next)it->cont=0;
}
Why is this and how can it correctly be avoided?
Cheers,
Martin
(boost 1.33.1, gcc 3.4.5)
#define BOOST_MULTI_INDEX_ENABLE_INVARIANT_CHECKING
#define BOOST_MULTI_INDEX_ENABLE_SAFE_MODE
#include
miT;
int main(){ miT::const_iterator it; miT map; it = map.get<T1>().end(); map.clear(); it = map.get<T1>().end(); // *** this hangs dtor! return 0; } __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com