Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/boost/throw_exception.hpp @ 47

Last change on this file since 47 was 29, checked in by landauf, 16 years ago

updated boost from 1_33_1 to 1_34_1

File size: 884 bytes
Line 
1#ifndef BOOST_THROW_EXCEPTION_HPP_INCLUDED
2#define BOOST_THROW_EXCEPTION_HPP_INCLUDED
3
4// MS compatible compilers support #pragma once
5
6#if defined(_MSC_VER) && (_MSC_VER >= 1020)
7# pragma once
8#endif
9
10//
11//  boost/throw_exception.hpp
12//
13//  Copyright (c) 2002 Peter Dimov and Multi Media Ltd.
14//
15// Distributed under the Boost Software License, Version 1.0. (See
16// accompanying file LICENSE_1_0.txt or copy at
17// http://www.boost.org/LICENSE_1_0.txt)
18//
19//  http://www.boost.org/libs/utility/throw_exception.html
20//
21
22#include <boost/config.hpp>
23
24#ifdef BOOST_NO_EXCEPTIONS
25# include <exception>
26#endif
27
28namespace boost
29{
30
31#ifdef BOOST_NO_EXCEPTIONS
32
33void throw_exception(std::exception const & e); // user defined
34
35#else
36
37template<class E> inline void throw_exception(E const & e)
38{
39    throw e;
40}
41
42#endif
43
44} // namespace boost
45
46#endif // #ifndef BOOST_THROW_EXCEPTION_HPP_INCLUDED
Note: See TracBrowser for help on using the repository browser.