From 3ff1789963e1831db9fd4b087e70401a26afadf7 Mon Sep 17 00:00:00 2001 From: david Date: Fri, 28 Jun 2002 17:02:42 +0000 Subject: [PATCH] Fixed an MSVC compilation problem reported by Frederic Bouvier. --- simgear/misc/props.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/simgear/misc/props.cxx b/simgear/misc/props.cxx index cb721d34..c198858b 100644 --- a/simgear/misc/props.cxx +++ b/simgear/misc/props.cxx @@ -26,6 +26,8 @@ using std::sort; #include SG_USING_STD(sort); +SG_USING_STD(find); +SG_USING_STD(vector); #endif @@ -844,7 +846,7 @@ SGPropertyNode::getChild (const char * name, int index, bool create) SGPropertyNode_ptr node; pos = find_child(name, index, _removedChildren); if (pos >= 0) { - std::vector::iterator it = _removedChildren.begin(); + vector::iterator it = _removedChildren.begin(); it += pos; node = _removedChildren[pos]; _removedChildren.erase(it); @@ -902,7 +904,7 @@ SGPropertyNode::removeChild (const char * name, int index, bool keep) SGPropertyNode_ptr ret; int pos = find_child(name, index, _children); if (pos >= 0) { - std::vector::iterator it = _children.begin(); + vector::iterator it = _children.begin(); it += pos; SGPropertyNode_ptr node = _children[pos]; _children.erase(it); -- 2.39.5