1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/stdapis/boost/throw_exception.hpp Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,46 @@
1.4 +#ifndef BOOST_THROW_EXCEPTION_HPP_INCLUDED
1.5 +#define BOOST_THROW_EXCEPTION_HPP_INCLUDED
1.6 +
1.7 +// MS compatible compilers support #pragma once
1.8 +
1.9 +#if defined(_MSC_VER) && (_MSC_VER >= 1020)
1.10 +# pragma once
1.11 +#endif
1.12 +
1.13 +//
1.14 +// boost/throw_exception.hpp
1.15 +//
1.16 +// Copyright (c) 2002 Peter Dimov and Multi Media Ltd.
1.17 +//
1.18 +// Distributed under the Boost Software License, Version 1.0. (See
1.19 +// accompanying file LICENSE_1_0.txt or copy at
1.20 +// http://www.boost.org/LICENSE_1_0.txt)
1.21 +//
1.22 +// http://www.boost.org/libs/utility/throw_exception.html
1.23 +//
1.24 +
1.25 +#include <boost/config.hpp>
1.26 +
1.27 +#ifdef BOOST_NO_EXCEPTIONS
1.28 +# include <exception>
1.29 +#endif
1.30 +
1.31 +namespace boost
1.32 +{
1.33 +
1.34 +#ifdef BOOST_NO_EXCEPTIONS
1.35 +
1.36 +void throw_exception(std::exception const & e); // user defined
1.37 +
1.38 +#else
1.39 +
1.40 +template<class E> inline void throw_exception(E const & e)
1.41 +{
1.42 + throw e;
1.43 +}
1.44 +
1.45 +#endif
1.46 +
1.47 +} // namespace boost
1.48 +
1.49 +#endif // #ifndef BOOST_THROW_EXCEPTION_HPP_INCLUDED