In order to compile, I need this, on my system

* Ubuntu Intrepid

*  gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.3.2-1ubuntu11' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu11)

* dpkg -l | grep stdc++
ii lib32stdc++6 4.3.2-1ubuntu11 The GNU Standard C++ Library v3 (32 bit Version) ii libstdc++6 4.3.2-1ubuntu11 The GNU Standard C++ Library v3 ii libstdc++6-4.3-dev 4.3.2-1ubuntu11 The GNU Standard C++ Library v3 (development files)

   T.

Index: src/frontends/qt4/GuiSendto.cpp
===================================================================
--- src/frontends/qt4/GuiSendto.cpp	(revisione 27551)
+++ src/frontends/qt4/GuiSendto.cpp	(copia locale)
@@ -26,6 +26,7 @@
 #include <QLineEdit>
 #include <QListWidget>
 #include <QPushButton>
+#include <algorithm>
 
 using namespace std;
 using namespace lyx::support;
@@ -207,7 +208,7 @@
 	}
 
 	// Remove repeated formats.
-	sort(to.begin(), to.end());
+	std::sort(to.begin(), to.end());
 	to.erase(unique(to.begin(), to.end()), to.end());
 
 	return to;

Index: src/LyXRC.cpp
===================================================================
--- src/LyXRC.cpp	(revisione 27551)
+++ src/LyXRC.cpp	(copia locale)
@@ -18,6 +18,7 @@
 
 #include <fstream>
 #include <iostream>
+#include <algorithm>
 
 #include "LyXRC.h"
 
@@ -2377,7 +2378,7 @@
 
 		for (; it != end; ++it) {
 			Movers::const_iterator const sysit =
-				find_if(sysbegin, sysend, SameMover(*it));
+				std::find_if(sysbegin, sysend, SameMover(*it));
 			if (sysit == sysend) {
 				string const & fmt = it->first;
 				string const & command =

Reply via email to