Index: Source/heap/Visitor.h |
diff --git a/Source/heap/Visitor.h b/Source/heap/Visitor.h |
index 0bbad103de055e9d05846b8e632373c3ed7a6735..44d5c6c48b45c10bc69a2dd4ca5b768ff3a6d65f 100644 |
--- a/Source/heap/Visitor.h |
+++ b/Source/heap/Visitor.h |
@@ -118,6 +118,13 @@ public: |
visit(*it); |
} |
+ template<typename T, size_t N> |
+ void visit(const Vector<Member<T>, N>& vector) |
+ { |
+ for (typename Vector<Member<T> >::const_iterator it = vector.begin(); it != vector.end(); ++it) |
+ visit(*it); |
+ } |
+ |
// This method adds the object to the set of objects that should have their |
// accept method called. Since not all objects have vtables we have to have |
// the callback as an explicit argument, but we can use the templated |