]> git.lyx.org Git - lyx.git/blob - boost/boost/throw_exception.hpp
LFUN_ESCAPE gets ReadOnly (fix bug 1142)
[lyx.git] / boost / boost / throw_exception.hpp
1 #ifndef BOOST_THROW_EXCEPTION_HPP_INCLUDED
2 #define BOOST_THROW_EXCEPTION_HPP_INCLUDED
3
4 #if _MSC_VER >= 1020
5 #pragma once
6 #endif
7
8 //
9 //  boost/throw_exception.hpp
10 //
11 //  Copyright (c) 2002 Peter Dimov and Multi Media Ltd.
12 //
13 //  Permission to copy, use, modify, sell and distribute this software
14 //  is granted provided this copyright notice appears in all copies.
15 //  This software is provided "as is" without express or implied
16 //  warranty, and with no claim as to its suitability for any purpose.
17 //
18 //  http://www.boost.org/libs/utility/throw_exception.html
19 //
20
21 #include <boost/config.hpp>
22
23 #ifdef BOOST_NO_EXCEPTIONS
24 # include <exception>
25 #endif
26
27 namespace boost
28 {
29
30 #ifdef BOOST_NO_EXCEPTIONS
31
32 void throw_exception(std::exception const & e); // user defined
33
34 #else
35
36 template<class E> void throw_exception(E const & e)
37 {
38     throw e;
39 }
40
41 #endif
42
43 } // namespace boost
44
45 #endif // #ifndef BOOST_THROW_EXCEPTION_HPP_INCLUDED