throw_exception.hpp

Go to the documentation of this file.
00001 #ifndef BOOST_THROW_EXCEPTION_HPP_INCLUDED
00002 #define BOOST_THROW_EXCEPTION_HPP_INCLUDED
00003 
00004 // MS compatible compilers support #pragma once
00005 
00006 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
00007 # pragma once
00008 #endif
00009 
00010 //
00011 //  boost/throw_exception.hpp
00012 //
00013 //  Copyright (c) 2002 Peter Dimov and Multi Media Ltd.
00014 //
00015 // Distributed under the Boost Software License, Version 1.0. (See
00016 // accompanying file LICENSE_1_0.txt or copy at
00017 // http://www.boost.org/LICENSE_1_0.txt)
00018 //
00019 //  http://www.boost.org/libs/utility/throw_exception.html
00020 //
00021 
00022 #include <sysc/packages/boost/config.hpp>
00023 
00024 #ifdef BOOST_NO_EXCEPTIONS
00025 # include <exception>
00026 #endif
00027 
00028 namespace boost
00029 {
00030 
00031 #ifdef BOOST_NO_EXCEPTIONS
00032 
00033 void throw_exception(std::exception const & e); // user defined
00034 
00035 #else
00036 
00037 template<class E> inline void throw_exception(E const & e)
00038 {
00039     throw e;
00040 }
00041 
00042 #endif
00043 
00044 } // namespace boost
00045 
00046 #endif // #ifndef BOOST_THROW_EXCEPTION_HPP_INCLUDED

Generated on Wed Jan 21 15:32:10 2009 for SystemC by  doxygen 1.5.5