Hi,<br><br>Sorry for the delay, I've been busy (aint that always the way).<br><br>I'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"><<a href="mailto:ferdinand.mitterbauer@gmx.at">ferdinand.mitterbauer@gmx.at</a>></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<typename _Acc::result_type>,<br>
<br>
[...]\libkdtree++\kdtree++/kdtree.hpp(97): error: expected a ";"<br>
typename _Cmp = std::less<typename _Acc::result_type>,<br>
<br>
[... skipped bunch off error messages ... ]<br>
<br>
The offending line(s) in kdtree.hpp:<br>
93: template <size_t const __K, typename _Val,<br>
94: typename _Acc = _Bracket_accessor<_Val>,<br>
95: typename _Dist = squared_difference<typename _Acc::result_type,<br>
96: typename _Acc::result_type>,<br>
97: typename _Cmp = std::less<typename _Acc::result_type>,<br>
98: typename _Alloc = std::allocator<_Node<_Val> > ><br>
99: class KDTree : protected _Alloc_base<_Val, _Alloc><br>
<br>
<br>
Suggested solution:<br>
~~~~~~~~~~~~~~~~~~~<br>
Insert line "#include <functional>" in file kdtree.hpp<br>
(Maybe Line 70 - right after the line "#include <algorithm>" - 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>