From: Lars Gullik Bjønnes Date: Wed, 5 Apr 2006 23:55:36 +0000 (+0000) Subject: do not define boost::throw_exceptions if we are compiling with exceptions X-Git-Tag: 1.6.10~13398 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=e7fc677261bd14fdf159e594fcf422e985c72664;p=lyx.git do not define boost::throw_exceptions if we are compiling with exceptions git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13564 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/boost.C b/src/boost.C index 10494e226a..217649650b 100644 --- a/src/boost.C +++ b/src/boost.C @@ -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 {