From f96cbbe7e452ce3c560aad44b5e318e8dc29a281 Mon Sep 17 00:00:00 2001 From: cignoni Date: Thu, 18 Oct 2012 09:01:51 +0000 Subject: [PATCH] Made the member with the distfunctor no more a reference but a copy. To avoid issues when passing temporary dist functors... --- vcg/space/index/space_iterators.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcg/space/index/space_iterators.h b/vcg/space/index/space_iterators.h index ef2b17ae..e8d0db2a 100644 --- a/vcg/space/index/space_iterators.h +++ b/vcg/space/index/space_iterators.h @@ -528,7 +528,7 @@ namespace vcg{ ScalarType step_size; //radius step std::vector Elems; //element loaded from the current sphere - DISTFUNCTOR &dist_funct; + DISTFUNCTOR dist_funct; TMARKER tm; typedef typename std::vector::reverse_iterator ElemIterator;