1 // Copyright 2019 Peter Dimov 2 // Distributed under the Boost Software License, Version 1.0. 3 // See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt 4 5 #include <boost/throw_exception.hpp> 6 #include <stdexcept> 7 main()8int main() 9 { 10 try 11 { 12 boost::throw_exception( std::runtime_error( "" ) ); 13 return 1; 14 } 15 catch( std::runtime_error const& ) 16 { 17 return 0; 18 } 19 } 20