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 | #include <boost/throw_exception.hpp> |
7 | |
8 | struct |
9 | my_exception |
10 | { |
11 | }; |
12 | |
13 | void |
14 | tester() |
15 | { |
16 | //Must not compile, throw_exception requires exception types to derive std::exception. |
17 | boost::throw_exception(e: my_exception()); |
18 | } |
19 |