Add missing include, due to André LASSERT change
[lyx.git] / src / client / boost.cpp
blob21cbb240e03433d5a4b282616b65e2080a533200
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.
6 * \author Lars Gullik Bjønnes
8 * Full author contact details are available in file CREDITS.
9 */
11 #include <config.h>
13 #include "LyX.h"
14 #include "support/debug.h"
16 #include <boost/assert.hpp>
18 #include <exception>
19 #include <ostream>
21 using namespace std;
23 namespace boost {
25 void throw_exception(exception const & e)
27 lyx::lyxerr << "Exception caught:\n" << e.what() << endl;
28 BOOST_ASSERT(false);
32 void assertion_failed(char const * expr, char const * function,
33 char const * file, long line)
35 lyx::lyxerr << "Assertion triggered in " << function
36 << " by failing check \"" << expr << "\""
37 << " in file " << file << ":" << line << endl;
38 lyx::support::abort();
42 } // namespace boost