Made some changes to get this thing compiling:

diff -r kdtree++/allocator.hpp /usr/include/kdtree++/allocator.hpp
21c21
<       typedef ::KDTree::_Node<_Tp> _Node;
---
>       typedef _Node<_Tp> _Node;
diff -r kdtree++/kdtree.hpp /usr/include/kdtree++/kdtree.hpp
56d55
< #include <algorithm>
91c90
<       typedef ::KDTree::_Node_compare<_Val, _Acc, _Cmp> _Node_compare;
---
>       typedef _Node_compare<_Val, _Acc, _Cmp> _Node_compare;
93c92
<       typedef ::KDTree::_Region<__K, _Val, typename _Acc::result_type, _Acc, 
_Cmp>
---
>       typedef _Region<__K, _Val, typename _Acc::result_type, _Acc, _Cmp>

The problem is discussed here http://social.msdn.microsoft.com/Forums
/en-US/vclanguage/thread/210c1976-f19a-4064-b415-032390a18dd6/ and the
answer is given by Carl Daniel halfway the thread:

inside the defintion of _Alloc_base, we have:


      typedef _Node<_Tp> _Node;


but at namespace scope we have:


     template <typename _Val>
     struct _Node : public _Node_base

-- 
libkdtree++-dev does not compile with g++-4.0
https://bugs.launchpad.net/bugs/105040
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to