Hi,<br><br>Sorry for the delay, I&#39;ve been busy (aint that always the way).<br><br>I&#39;ve applied the fix to git master, thanks for the tip!<br><br>cheers<br>Paul<br><br><div class="gmail_quote">On 16 October 2010 00:44, Ferdinand Mitterbauer <span dir="ltr">&lt;<a href="mailto:ferdinand.mitterbauer@gmx.at">ferdinand.mitterbauer@gmx.at</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Problem:<br>
~~~~~~~~<br>
Building a project using libkdtree++ using Intel C++ Compiler 11.1 (on Windows 7, 64bit) results in the following error(s):<br>
<br>
[...]\libkdtree++\kdtree++/kdtree.hpp(97): error: expected a declaration<br>
              typename _Cmp = std::less&lt;typename _Acc::result_type&gt;,<br>
<br>
[...]\libkdtree++\kdtree++/kdtree.hpp(97): error: expected a &quot;;&quot;<br>
              typename _Cmp = std::less&lt;typename _Acc::result_type&gt;,<br>
                        <br>
[... skipped bunch off error messages ... ]<br>
<br>
The offending line(s) in kdtree.hpp:<br>
93:  template &lt;size_t const __K, typename _Val,<br>
94:       typename _Acc = _Bracket_accessor&lt;_Val&gt;,<br>
95:           typename _Dist = squared_difference&lt;typename _Acc::result_type,<br>
96:               typename _Acc::result_type&gt;,<br>
97:       typename _Cmp = std::less&lt;typename _Acc::result_type&gt;,<br>
98:       typename _Alloc = std::allocator&lt;_Node&lt;_Val&gt; &gt; &gt;<br>
99:    class KDTree : protected _Alloc_base&lt;_Val, _Alloc&gt;<br>
<br>
<br>
Suggested solution:<br>
~~~~~~~~~~~~~~~~~~~<br>
Insert line &quot;#include &lt;functional&gt;&quot; in file kdtree.hpp<br>
(Maybe Line 70 - right after the line &quot;#include &lt;algorithm&gt;&quot; - would be a nice place).<br>
<br>
greetings,<br>
Ferdinand<br>
<br>
_______________________________________________<br>
libkdtree-devel mailing list<br>
<a href="mailto:libkdtree-devel@lists.alioth.debian.org" target="_blank">libkdtree-devel@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/mailman/listinfo/libkdtree-devel" target="_blank">http://lists.alioth.debian.org/mailman/listinfo/libkdtree-devel</a><br>
</blockquote></div><br>