]> git.lyx.org Git - features.git/commitdiff
fix compilation with gcc 4.0
authorLars Gullik Bjønnes <larsbj@gullik.org>
Thu, 6 Jan 2005 16:07:02 +0000 (16:07 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Thu, 6 Jan 2005 16:07:02 +0000 (16:07 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9447 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/math_nestinset.C
src/support/tostr.h

index 4ae1a471bbc98c5382a7cb3d6df81509d0e297ed..6702a9af8be6dfd287e0a9af384059a84f1be1d4 100644 (file)
@@ -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);
index 93e1f9a943cedb10831a7459bc39e485751ad9bf..ead674b99cd9d338cd79f220e6555dfb0ec316bf 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <string>
 
+
+#if 0
+// Commented out since BOOST_STATIC_ASSERT does not work with gcc 4.0
 template <class Target, class Source>
 Target convert(Source arg)
 {
@@ -28,6 +31,11 @@ Target convert(Source arg)
        BOOST_STATIC_ASSERT(sizeof(bool) == 0);
        return Target();
 }
+#else
+template <class Target, class Source>
+Target convert(Source arg);
+#endif
+
 
 template<>
 std::string convert<std::string>(bool);