X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2Ftests%2Fboost.cpp;h=426263b19d007430e4e97022a9bf39572ca9ac0d;hb=8d640dc77608bedddb5b00982c23665584f52d21;hp=204898567e953f8cf6e1ae90e0dde26af5e756f5;hpb=9abb7db46800e554f57e865a3e768602ffd9d6f1;p=lyx.git diff --git a/src/support/tests/boost.cpp b/src/support/tests/boost.cpp index 204898567e..426263b19d 100644 --- a/src/support/tests/boost.cpp +++ b/src/support/tests/boost.cpp @@ -3,25 +3,28 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author Lars Gullik Bjønnes + * \author Lars Gullik Bjønnes * * Full author contact details are available in file CREDITS. */ #include -#include +#include "support/lassert.h" #include #include +using namespace std; namespace boost { +#ifndef BOOST_NO_EXCEPTIONS void throw_exception(exception const & /*e*/) { - BOOST_ASSERT(false); + LASSERT(false, /**/); } +#endif void assertion_failed(char const * /*expr*/, char const * /*function*/, @@ -30,5 +33,4 @@ void assertion_failed(char const * /*expr*/, char const * /*function*/, ::abort(); } - -} +} // namespace boost