gnu: Add grass.
[jackhill/guix/guix.git] / nix / boost / throw_exception.hpp
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 // Permission to copy, use, modify, sell and distribute this software
16 // is granted provided this copyright notice appears in all copies.
17 // This software is provided "as is" without express or implied
18 // warranty, and with no claim as to its suitability for any purpose.
19 //
20 // http://www.boost.org/libs/utility/throw_exception.html
21 //
22
23 //#include <boost/config.hpp>
24
25 #ifdef BOOST_NO_EXCEPTIONS
26 # include <exception>
27 #endif
28
29 namespace boost
30 {
31
32 #ifdef BOOST_NO_EXCEPTIONS
33
34 void throw_exception(std::exception const & e); // user defined
35
36 #else
37
38 template<class E> void throw_exception(E const & e)
39 {
40 throw e;
41 }
42
43 #endif
44
45 } // namespace boost
46
47 #endif // #ifndef BOOST_THROW_EXCEPTION_HPP_INCLUDED