]> git.lyx.org Git - lyx.git/blobdiff - src/support/tests/boost.cpp
Remove non-copyable idioms
[lyx.git] / src / support / tests / boost.cpp
index 204898567e953f8cf6e1ae90e0dde26af5e756f5..426263b19d007430e4e97022a9bf39572ca9ac0d 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 "support/lassert.h"
 
 #include <cstdlib>
 #include <exception>
 
+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