diff -r e1b950c65cb4 -r 837f303aceeb epoc32/include/stdapis/boost/ptr_container/detail/throw_exception.hpp --- a/epoc32/include/stdapis/boost/ptr_container/detail/throw_exception.hpp Wed Mar 31 12:27:01 2010 +0100 +++ b/epoc32/include/stdapis/boost/ptr_container/detail/throw_exception.hpp Wed Mar 31 12:33:34 2010 +0100 @@ -1,46 +1,33 @@ -#ifndef BOOST_THROW_EXCEPTION_HPP_INCLUDED -#define BOOST_THROW_EXCEPTION_HPP_INCLUDED - -// MS compatible compilers support #pragma once - -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -# pragma once -#endif - // -// boost/throw_exception.hpp +// Boost.Pointer Container // -// Copyright (c) 2002 Peter Dimov and Multi Media Ltd. +// Copyright Thorsten Ottosen 2006. Use, modification and +// distribution is subject to the Boost Software License, Version +// 1.0. (See accompanying file LICENSE_1_0.txt or copy at +// http://www.boost.org/LICENSE_1_0.txt) // -// Distributed under the Boost Software License, Version 1.0. (See -// accompanying file LICENSE_1_0.txt or copy at -// http://www.boost.org/LICENSE_1_0.txt) -// -// http://www.boost.org/libs/utility/throw_exception.html +// For more information, see http://www.boost.org/libs/ptr_container/ // +#ifndef BOOST_PTR_CONTAINER_DETAIL_THROW_EXCEPTION +#define BOOST_PTR_CONTAINER_DETAIL_THROW_EXCEPTION + +#include #include #ifdef BOOST_NO_EXCEPTIONS -# include +#define BOOST_PTR_CONTAINER_NO_EXCEPTIONS #endif -namespace boost -{ +#ifdef BOOST_PTR_CONTAINER_NO_EXCEPTIONS -#ifdef BOOST_NO_EXCEPTIONS - -void throw_exception(std::exception const & e); // user defined +#define BOOST_PTR_CONTAINER_THROW_EXCEPTION( If, Ex, Msg ) BOOST_ASSERT( !(If) && Msg ) #else -template inline void throw_exception(E const & e) -{ - throw e; -} +#define BOOST_PTR_CONTAINER_THROW_EXCEPTION( If, Ex, Msg ) if( (If) ) throw Ex ( Msg ) + +#endif // BOOST_PTR_CONTAINER_NO_EXCEPTIONS + #endif - -} // namespace boost - -#endif // #ifndef BOOST_THROW_EXCEPTION_HPP_INCLUDED