From e3c9bdd0ea4e88e59a95d6a72417af659c01ff2e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lars=20Gullik=20Bj=C3=B8nnes?= Date: Thu, 6 Jan 2005 16:07:02 +0000 Subject: [PATCH] fix compilation with gcc 4.0 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9447 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/math_nestinset.C | 4 ++-- src/support/tostr.h | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/mathed/math_nestinset.C b/src/mathed/math_nestinset.C index 4ae1a471bb..6702a9af8b 100644 --- a/src/mathed/math_nestinset.C +++ b/src/mathed/math_nestinset.C @@ -784,13 +784,13 @@ void MathNestInset::doDispatch(LCursor & cur, FuncRequest & cmd) recordUndo(cur, Undo::ATOMIC); interpret(cur, '\\'); break; - + case LFUN_SUBSCRIPT: // interpret this as if a _ was typed recordUndo(cur, Undo::ATOMIC); interpret(cur, '_'); break; - + case LFUN_SUPERSCRIPT: // interpret this as if a ^ was typed recordUndo(cur, Undo::ATOMIC); diff --git a/src/support/tostr.h b/src/support/tostr.h index 93e1f9a943..ead674b99c 100644 --- a/src/support/tostr.h +++ b/src/support/tostr.h @@ -20,6 +20,9 @@ #include + +#if 0 +// Commented out since BOOST_STATIC_ASSERT does not work with gcc 4.0 template Target convert(Source arg) { @@ -28,6 +31,11 @@ Target convert(Source arg) BOOST_STATIC_ASSERT(sizeof(bool) == 0); return Target(); } +#else +template +Target convert(Source arg); +#endif + template<> std::string convert(bool); -- 2.39.2