]> git.lyx.org Git - lyx.git/blob - boost/boost/throw_exception.hpp
complie fix
[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
19 #include <boost/config.hpp>
20
21 #ifdef BOOST_NO_EXCEPTIONS
22 # include <exception>
23 #endif
24
25 namespace boost
26 {
27
28 #ifdef BOOST_NO_EXCEPTIONS
29
30 void throw_exception(std::exception const & e); // user defined
31
32 #else
33
34 template<class E> void throw_exception(E const & e)
35 {
36     throw e;
37 }
38
39 #endif
40
41 } // namespace boost
42
43 #endif // #ifndef BOOST_THROW_EXCEPTION_HPP_INCLUDED