diff options
Diffstat (limited to 'graphics/inkscape/files/patch-src::remove-last.h')
-rw-r--r-- | graphics/inkscape/files/patch-src::remove-last.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/graphics/inkscape/files/patch-src::remove-last.h b/graphics/inkscape/files/patch-src::remove-last.h new file mode 100644 index 000000000..059f14ac7 --- /dev/null +++ b/graphics/inkscape/files/patch-src::remove-last.h @@ -0,0 +1,19 @@ +--- 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); |