freebsd-ports/graphics/inkscape/files/patch-src::remove-last.h
Alexander Nedotsukov 5249e13e8b - Update to 0.38.1
- Workaround internal compiller error on -STABLE [1]
- More build patches incl. fix for build with antiqe STL on -STABLE

Reported by:	Lee Harr <missive@hotmail.com> [1]
2004-04-12 16:20:45 +00:00

19 lines
539 B
C++

--- src/remove-last.h.orig Mon Apr 12 09:56:06 2004
+++ src/remove-last.h Mon Apr 12 09:56:47 2004
@@ -2,6 +2,7 @@
#define __REMOVE_LAST_H__
#include <vector>
+#include <algorithm>
#include <glib.h>
template<class T>
@@ -9,7 +10,7 @@
{
using std::vector;
- typename vector<T>::reverse_iterator i(find(seq.rbegin(), seq.rend(), elem));
+ typename vector<T>::reverse_iterator i(std::find(seq.rbegin(), seq.rend(), elem));
g_assert( i != seq.rend() );
typename vector<T>::iterator ii(&*i);
seq.erase(ii);