Thorsten Ottosen
See
http://www.boost.org/libs/ptr_container/doc/reference.html#disabling-the-use...
Ok, I just checked the preprocessed output, and exceptions are _not_ "disabled", but the boost code seems to contains tons of assertions regardless of what mode (exceptions or no_exceptions) is used.
Hmmm I didn't explicitly define any macros, but what the compiled code contains seems to be asserts.
Ok, you need to turn assertions off in release mode, perhaps by using -DNDEBUG=1
Well... generally the whole concept of a special no-checking-at-all
"release mode" is a bit alien here.
I looked at the code and it seems like the basic problem is that the
boost::ptr_sequence_adapter class (at least) is somewhat
over-enthusiastic in it's use of assertions:
template<...>
class ptr_sequence_adapter : public
ptr_container_detail::reversible_ptr_container< ptr_container_detail::sequence_config