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/exception/get_error_info.hpp> |
7 | |
8 | typedef boost::error_info<struct foo_,int> foo; |
9 | |
10 | void |
11 | test( boost::exception const * e ) |
12 | { |
13 | ++*boost::get_error_info<foo>(some_exception: *e); |
14 | } |
15 |