pkgsrc/devel/xsd/patches/patch-libcult-1.4.2_cult_containers_deque.hxx
joerg 63a24c4115 xsd uses iterator wrappers around the standard types's iterator and
const_iterator types, but doesn't provide explicit conversion operators
from iterator to const_iterator. This breaks badly when moving from
C++03 to C++11 as the erase signature changed. Conditionally the logic
appropiately by introducing an intermediate typedef.
2016-06-07 17:59:50 +00:00

17 lines
564 B
C++

$NetBSD: patch-libcult-1.4.2_cult_containers_deque.hxx,v 1.1 2016/06/07 17:59:51 joerg Exp $
--- libcult-1.4.2/cult/containers/deque.hxx.orig 2016-06-04 21:42:29.518543508 +0000
+++ libcult-1.4.2/cult/containers/deque.hxx
@@ -53,6 +53,12 @@ namespace Cult
IteratorAdapter<typename Base::const_iterator>
ConstIterator;
+#if defined(_LIBCPP_VERSION) || __cplusplus >= 201103L
+ typedef ConstIterator EraseIterator;
+#else
+ typedef Iterator EraseIterator;
+#endif
+
typedef
IteratorAdapter<typename Base::reverse_iterator>