123456789101112131415161718192021222324252627282930313233 |
- #ifndef BOOST_PTR_CONTAINER_DETAIL_THROW_EXCEPTION
- #define BOOST_PTR_CONTAINER_DETAIL_THROW_EXCEPTION
- #include <boost/assert.hpp>
- #include <boost/config.hpp>
- #ifdef BOOST_NO_EXCEPTIONS
- #define BOOST_PTR_CONTAINER_NO_EXCEPTIONS
- #endif
- #ifdef BOOST_PTR_CONTAINER_NO_EXCEPTIONS
- #define BOOST_PTR_CONTAINER_THROW_EXCEPTION( If, Ex, Msg ) BOOST_ASSERT( !(If) && Msg )
- #else
- #define BOOST_PTR_CONTAINER_THROW_EXCEPTION( If, Ex, Msg ) if( (If) ) throw Ex ( Msg )
- #endif
- #endif
|