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 #define BOOST_EXCEPTION_DISABLE 8 #include <boost/throw_exception.hpp> 9 #include <stdlib.h> 10 11 class my_exception: public std::exception { }; 12 13 namespace 14 boost 15 { 16 void throw_exception(std::exception const &)17 throw_exception( std::exception const & ) 18 { 19 exit(0); 20 } 21 } 22 23 int main()24main() 25 { 26 boost::throw_exception(my_exception()); 27 return 1; 28 } 29