File indexing completed on 2025-01-18 09:50:35
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef BOOST_PTR_CONTAINER_DETAIL_THROW_EXCEPTION
0013 #define BOOST_PTR_CONTAINER_DETAIL_THROW_EXCEPTION
0014
0015 #include <boost/assert.hpp>
0016 #include <boost/config.hpp>
0017
0018 #ifdef BOOST_NO_EXCEPTIONS
0019 #define BOOST_PTR_CONTAINER_NO_EXCEPTIONS
0020 #endif
0021
0022 #ifdef BOOST_PTR_CONTAINER_NO_EXCEPTIONS
0023
0024 #define BOOST_PTR_CONTAINER_THROW_EXCEPTION( If, Ex, Msg ) BOOST_ASSERT( !(If) && Msg )
0025
0026 #else
0027
0028 #define BOOST_PTR_CONTAINER_THROW_EXCEPTION( If, Ex, Msg ) if( (If) ) throw Ex ( Msg )
0029
0030 #endif
0031
0032
0033 #endif