Add boost::throw_with_location

This commit is contained in:
Peter Dimov
2022-02-10 20:02:30 +02:00
parent 7b314a2184
commit c5dfcc3dd4
9 changed files with 316 additions and 5 deletions

14
test/lib4_throw.cpp Normal file
View File

@ -0,0 +1,14 @@
// Copyright 2018, 2022 Peter Dimov
//
// Distributed under the Boost Software License, Version 1.0.
//
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
#include "lib4_throw.hpp"
#include <boost/throw_exception.hpp>
void lib4::f()
{
boost::throw_with_location( lib4::exception() );
}