Disabling exceptions support

| Home | Libraries | People | FAQ | More

## Disabling exceptions support

Boost.Intrusive might be useful in environments where exceptions are not available or recommendable (like embedded or real-time systems). Boost.Intrusive uses the global Boost mechanism to disable exception handling, so that if the compiler configuration disables exceptions, `BOOST_NO_EXCEPTIONS` is defined and exception handling is disabled.

This mechanism is a global mechanism to disable exceptions. If for any reason, the user wants to disable exception handling only in Boost.Intrusive, `BOOST_INTRUSIVE_DISABLE_EXCEPTION_HANDLING` can be defined to disable exception handling in the library.