X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Ftests%2Fboost.cpp;h=09d701dfd51980046a88cd3919d3d34cc4292619;hb=c48091f33a773732fa6c789927e5833e44108d9d;hp=975f48c0793c94b1c5da1c7d6291b366c6ad507e;hpb=456524da4536c512af624934d7f52d2c10d71e7a;p=lyx.git diff --git a/src/frontends/tests/boost.cpp b/src/frontends/tests/boost.cpp index 975f48c079..09d701dfd5 100644 --- a/src/frontends/tests/boost.cpp +++ b/src/frontends/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 -#include +#include +#include +using namespace std; namespace boost { -void throw_exception(std::exception const & /*e*/) +#ifndef BOOST_NO_EXCEPTIONS +void throw_exception(exception const & /*e*/) { + cerr<<"ASSERTION VIOLATED IN biblio test"; BOOST_ASSERT(false); } +#endif void assertion_failed(char const * /*expr*/, char const * /*function*/, @@ -30,4 +33,4 @@ void assertion_failed(char const * /*expr*/, char const * /*function*/, ::abort(); } -} +} // namespace boost