]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/tests/boost.cpp
Don't allow newline characters in document settings.
[lyx.git] / src / frontends / tests / boost.cpp
index 975f48c0793c94b1c5da1c7d6291b366c6ad507e..09d701dfd51980046a88cd3919d3d34cc4292619 100644 (file)
@@ -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 <config.h>
 
-#include <boost/assert.hpp>
-
 #include <cstdlib>
-#include <exception>
+#include <iostream>
+#include <boost/assert.hpp>
 
+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