]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/exception/test/current_exception_cast_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/exception/current_exception_cast.hpp>
7 #include <boost/detail/lightweight_test.hpp>
42 BOOST_TEST(boost::current_exception_cast
<std::exception
>()==&e
);
43 BOOST_TEST(!boost::current_exception_cast
<polymorphic
>());
46 return boost::report_errors();