pkgsrc/devel/xsd/patches/patch-libxsd-frontend-1.15.0_xsd-frontend_semantic-graph_elements.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

13 lines
608 B
C++

$NetBSD: patch-libxsd-frontend-1.15.0_xsd-frontend_semantic-graph_elements.hxx,v 1.2 2016/06/07 17:59:51 joerg Exp $
--- libxsd-frontend-1.15.0/xsd-frontend/semantic-graph/elements.hxx.orig 2013-05-14 19:59:19.000000000 +0000
+++ libxsd-frontend-1.15.0/xsd-frontend/semantic-graph/elements.hxx
@@ -577,7 +577,7 @@ namespace XSDFrontend
Void
remove_edge_left (Names& e)
{
- ListIteratorMap::Iterator i (iterator_map_.find (&e));
+ ListIteratorMap::EraseIterator i (iterator_map_.find (&e));
assert (i != iterator_map_.end ());
names_.erase (i->second);