1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/math/carve/files/patch-include-carve_kd_node.hpp

21 lines
798 B
C++

--- include/carve/kd_node.hpp.orig 2013-02-22 09:47:07.000000000 +0100
+++ include/carve/kd_node.hpp 2013-02-22 09:50:00.000000000 +0100
@@ -238,7 +238,7 @@
// q_t - the priority queue value type.
// q_t.first: distance from object to query point.
// q_t.second: pointer to object
- typedef std::pair<double, const typename kd_node::data_t *> q_t;
+ typedef std::pair<double, const data_t *> q_t;
// the queue priority should sort from smallest distance to largest, and on equal distance, by object pointer.
struct pcmp {
@@ -266,7 +266,7 @@
}
}
- const typename kd_node::data_t *next() {
+ const data_t *next() {
while (1) {
if (pq.size()) {
q_t t = pq.top();