<div class="gmail_quote">On Tue, Dec 20, 2011 at 2:42 AM, Manuel Klimek <span dir="ltr"><<a href="mailto:klimek@google.com">klimek@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div id=":5r8">Modified: llvm/trunk/lib/Support/JSONParser.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/JSONParser.cpp?rev=146971&r1=146970&r2=146971&view=diff" target="_blank" class="cremed">http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/JSONParser.cpp?rev=146971&r1=146970&r2=146971&view=diff</a><br>

==============================================================================<br>
--- llvm/trunk/lib/Support/JSONParser.cpp (original)<br>
+++ llvm/trunk/lib/Support/JSONParser.cpp Tue Dec 20 04:42:52 2011<br>
@@ -40,7 +40,30 @@<br>
 }<br>
<br>
 bool JSONParser::validate() {<br>
-  return parseRoot()->skip();<br>
+  return skip(*parseRoot());<br>
+}<br>
+<br>
+template <typename ContainerT><br>
+bool JSONParser::skipContainer(const ContainerT &Container) {<br>
+  for (typename ContainerT::const_iterator I = Container.current(),<br>
+                                           E = Container.end();<br>
+       I != E; ++I) {<br>
+    assert(*I != 0);<br>
+    if (!skip(**I))<br>
+      return false;<br>
+  }<br>
+  return !failed();<br>
+}</div></blockquote></div><br><div>Again, you can't just define template functions in the source file. Until this is de-templated, this definition needs to be available in the header. =/</div>