getfem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Getfem-commits] (no subject)


From: Markus Bürg
Subject: [Getfem-commits] (no subject)
Date: Thu, 23 May 2019 10:24:00 -0400 (EDT)

branch: mb-Use_rtree_in_poly_composite
commit eac6b9a7a52ce13d43073684c9520b6758614576
Author: mb <address@hidden>
Date:   Thu May 23 16:16:21 2019 +0200

    Store reference instead of copy.
---
 src/bgeot_rtree.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bgeot_rtree.cc b/src/bgeot_rtree.cc
index ae03ce5..25182bc 100644
--- a/src/bgeot_rtree.cc
+++ b/src/bgeot_rtree.cc
@@ -98,7 +98,7 @@ namespace bgeot {
 
   /* match boxes containing P */
   struct has_point_p {
-    const base_node P;
+    const base_node &P;
     const scalar_type EPS;
     has_point_p(const base_node& P_, scalar_type EPS) : P(P_), EPS{EPS} {}
     bool operator()(const base_node& min2, const base_node& max2) const {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]