<p>Thanks for the patch Max. If I can&#39;t put it in the code tomorrow, I&#39;ll check if others can do it.</p>
<p>On 11 Jun 2010 15:32, &quot;Max Kellermann&quot; &lt;<a href="mailto:max@duempel.org">max@duempel.org</a>&gt; wrote:<br type="attribution">&gt; kdtree.hpp does not compile with LLVM&#39;s clang++ compiler, because it<br>
&gt; violates the C++ standard, resulting in the error message:<br>&gt; <br>&gt;  &quot;must qualify identifier to find this declaration in dependent base<br>&gt;  class&quot;<br>&gt; <br>&gt; This is best explained on the clang home page:<br>
&gt; <br>&gt;  <a href="http://clang.llvm.org/cxx_compatibility.html">http://clang.llvm.org/cxx_compatibility.html</a><br>&gt; <br>&gt; &quot;When we look up a name used in a class, we usually look into the base<br>&gt; classes. However, we can&#39;t look into the base class Base&lt;T&gt; because<br>
&gt; its type depends on the template argument T, so the standard says we<br>&gt; should just ignore it.&quot;<br>&gt; ---<br>&gt;  kdtree++/kdtree.hpp |    6 +++---<br>&gt;  1 files changed, 3 insertions(+), 3 deletions(-)<br>
&gt; <br>&gt; diff --git a/kdtree++/kdtree.hpp b/kdtree++/kdtree.hpp<br>&gt; index 62464a3..706d58d 100644<br>&gt; --- a/kdtree++/kdtree.hpp<br>&gt; +++ b/kdtree++/kdtree.hpp<br>&gt; @@ -1169,7 +1169,7 @@ namespace KDTree<br>
&gt;        {<br>&gt;           typename _Base::NoLeakAlloc noleak(this);<br>&gt;           _Link_type new_node = noleak.get();<br>&gt; -         _M_construct_node(new_node, __V, __PARENT, __LEFT, __RIGHT);<br>&gt; +         _Base::_M_construct_node(new_node, __V, __PARENT, __LEFT, __RIGHT);<br>
&gt;           noleak.disconnect();<br>&gt;           return new_node;<br>&gt;        }<br>&gt; @@ -1187,8 +1187,8 @@ namespace KDTree<br>&gt;        void<br>&gt;        _M_delete_node(_Link_type __p)<br>&gt;        {<br>
&gt; -        _M_destroy_node(__p);<br>&gt; -        _M_deallocate_node(__p);<br>&gt; +        _Base::_M_destroy_node(__p);<br>&gt; +        _Base::_M_deallocate_node(__p);<br>&gt;        }<br>&gt;  <br>&gt;        _Link_type _M_root;<br>
&gt; <br>&gt; <br>&gt; _______________________________________________<br>&gt; libkdtree-devel mailing list<br>&gt; <a href="mailto:libkdtree-devel@lists.alioth.debian.org">libkdtree-devel@lists.alioth.debian.org</a><br>&gt; <a href="http://lists.alioth.debian.org/mailman/listinfo/libkdtree-devel">http://lists.alioth.debian.org/mailman/listinfo/libkdtree-devel</a><br>
</p>