]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | //Copyright (c) 2006-2009 Emil Dotchevski and Reverge Studios, Inc. |
2 | ||
3 | //Distributed under the Boost Software License, Version 1.0. (See accompanying | |
4 | //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
5 | ||
6 | #define BOOST_NO_EXCEPTIONS | |
7 | #include <boost/throw_exception.hpp> | |
7c673cae FG |
8 | |
9 | class my_exception: public std::exception { }; | |
10 | ||
7c673cae FG |
11 | namespace |
12 | boost | |
13 | { | |
14 | void | |
15 | throw_exception( std::exception const & ) | |
16 | { | |
92f5a8d4 | 17 | exit(0); |
7c673cae FG |
18 | } |
19 | } | |
20 | ||
21 | int | |
22 | main() | |
23 | { | |
24 | boost::throw_exception(my_exception()); | |
92f5a8d4 | 25 | return 1; |
7c673cae | 26 | } |