error_info_const_fail.cpp 408 B

1234567891011121314
  1. //Copyright (c) 2006-2009 Emil Dotchevski and Reverge Studios, Inc.
  2. //Distributed under the Boost Software License, Version 1.0. (See accompanying
  3. //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  4. #include <boost/exception/get_error_info.hpp>
  5. typedef boost::error_info<struct foo_,int> foo;
  6. void
  7. test( boost::exception const * e )
  8. {
  9. ++*boost::get_error_info<foo>(*e);
  10. }