]> git.lyx.org Git - lyx.git/blobdiff - config/lyxinclude.m4
change the std::string check
[lyx.git] / config / lyxinclude.m4
index a430a0933a028380aea50ee88834ebdd94536944..cbd9564ce77f4fc05b5a336e163c3c3bcd83eb29 100644 (file)
@@ -194,7 +194,7 @@ dnl Check the version of g++
   fi
   if test x$with_warnings = xyes ; then
     case $gxx_version in
-       2.95.*) CXXFLAGS="$CXXFLAGS -W -Wall -Wconversion";;
+       2.95.*) CXXFLAGS="$CXXFLAGS -W -Wall -Wconversion -Winline";;
        2.96*)  CXXFLAGS="$CXXFLAGS -W -Wall -Wconversion";;
        *)      CXXFLAGS="$CXXFLAGS -ansi -W -Wall -Wno-return-type";;
     esac
@@ -345,8 +345,10 @@ AC_DEFUN(LYX_CXX_STL_STRING,[
            using std::string;
        ],[
            string a("hello there");
-           a.clear();
+           a.erase();
            a = "hey";
+           char s[] = "y";
+           int t = a.compare(a.length() - 1, 1, s);
            a.erase();
        ],[
            with_included_string=no