]> git.lyx.org Git - lyx.git/blob - src/support/tests/boost.cpp
Update to boost 1.72
[lyx.git] / src / support / tests / boost.cpp
1 /**
2  * \file boost.cpp
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Lars Gullik Bjønnes
7  *
8  * Full author contact details are available in file CREDITS.
9  */
10
11 #include <config.h>
12
13 #include <boost/assert.hpp>
14
15 #include <cstdlib>
16 #include <exception>
17
18 using namespace std;
19
20 namespace boost {
21
22 #ifndef BOOST_NO_EXCEPTIONS
23 void throw_exception(exception const & /*e*/)
24 {
25         BOOST_ASSERT(false);
26 }
27 #endif
28
29
30 void assertion_failed(char const * /*expr*/, char const * /*function*/,
31                       char const * /*file*/, long /*line*/)
32 {
33         ::abort();
34 }
35
36
37 void assertion_failed_msg(char const * /*expr*/, char const * /*msg*/,
38                                                   char const * /*function*/, char const * /*file*/, long /*line*/)
39 {
40         ::abort();
41 }
42
43 } // namespace boost