With:
- Ubuntu 8.10 (development branch),
- gcc 4.3.2,
- libkdtree++-dev 0.6.2-1,
and the same one-liner:
$ g++ -Wall -Werror -pedantic test.cpp
In file included from /usr/include/kdtree++/kdtree.hpp:61,
from test.cpp:1:
/usr/include/kdtree++/allocator.hpp:21: error: declaration of ‘typedef struct
KDTree::_Node<_Val> KDTree::_Alloc_base<_Tp, _Alloc>::_Node’
/usr/include/kdtree++/node.hpp:49: error: changes meaning of ‘_Node’ from
‘struct KDTree::_Node<_Val>’
In file included from test.cpp:1:
/usr/include/kdtree++/kdtree.hpp:90: error: declaration of ‘typedef class
KDTree::_Node_compare<_Val, _Acc, _Cmp> KDTree::KDTree<__K, _Val, _Acc, _Cmp,
_Alloc>::_Node_compare’
/usr/include/kdtree++/node.hpp:65: error: changes meaning of ‘_Node_compare’
from ‘class KDTree::_Node_compare<_Val, _Acc, _Cmp>’
/usr/include/kdtree++/kdtree.hpp:93: error: declaration of ‘typedef struct
KDTree::_Region<__K, _Val, typename _Acc::result_type, _Acc, _Cmp>
KDTree::KDTree<__K, _Val, _Acc, _Cmp, _Alloc>::_Region’
/usr/include/kdtree++/region.hpp:20: error: changes meaning of ‘_Region’ from
‘struct KDTree::_Region<__K, _Val, typename _Acc::result_type, _Acc, _Cmp>’
/usr/include/kdtree++/kdtree.hpp: In member function ‘void KDTree::KDTree<__K,
_Val, _Acc, _Cmp, _Alloc>::_M_optimise(const _Iter&, const _Iter&, size_t)’:
/usr/include/kdtree++/kdtree.hpp:975: error: ‘sort’ is not a member of ‘std’
--
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
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs