]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/exception/test/2-throw_exception_no_exceptions_test.cpp
1 //Copyright (c) 2006-2009 Emil Dotchevski and Reverge Studios, Inc.
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)
6 #include <boost/config.hpp>
8 #if !defined( BOOST_NO_EXCEPTIONS )
9 # error This program requires exception handling disabled.
12 #include <boost/throw_exception.hpp>
15 class my_exception
: public std::exception
{ };
21 throw_exception( std::exception
const & )
30 boost::throw_exception(my_exception());