]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/throw_exception/test/throw_with_location_nx_test.cpp
1 // Copyright 2019, 2022 Peter Dimov
2 // Distributed under the Boost Software License, Version 1.0.
3 // http://www.boost.org/LICENSE_1_0.txt
6 # pragma warning(disable: 4702) // unreachable code
7 # pragma warning(disable: 4577) // noexcept used without /EHsc
8 # pragma warning(disable: 4530) // C++ exception handler used
11 #include <boost/throw_exception.hpp>
14 class my_exception
: public std::exception
{};
18 boost::throw_with_location( my_exception() );
25 void throw_exception( std::exception
const &, boost::source_location
const & )