]> git.lyx.org Git - features.git/commitdiff
do not define boost::throw_exceptions if we are compiling with exceptions
authorLars Gullik Bjønnes <larsbj@gullik.org>
Wed, 5 Apr 2006 23:55:36 +0000 (23:55 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Wed, 5 Apr 2006 23:55:36 +0000 (23:55 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13564 a592a061-630c-0410-9148-cb99ea01b6c8

src/boost.C

index 10494e226ad8ed57d0d0c36101edfed264d08906..217649650b45f6b2f1ec7d7dc3e912785cd04f34 100644 (file)
@@ -22,13 +22,14 @@ using std::endl;
 
 namespace boost {
 
+#ifndef BOOST_NO_EXCEPTIONS
 void throw_exception(std::exception const & e)
 {
        lyxerr << "Exception caught:\n"
            << e.what() << endl;
        BOOST_ASSERT(false);
 }
-
+#endif
 
 namespace {