[PATCH] Fixed building review statistics with gcc 4.7

Vladimir S. FONOV vladimir.fonov at gmail.com
Wed Jul 10 18:22:53 EDT 2013


Change-Id: I0e4cb72c7c7d9fedf4f36e68e9490cc0b1f2f96c
---
 Code/Review/Statistics/itkStatisticsAlgorithm.txx  |    8 ++++++++
 .../itkWeightedCentroidKdTreeGenerator.txx         |    4 ++--
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/Code/Review/Statistics/itkStatisticsAlgorithm.txx b/Code/Review/Statistics/itkStatisticsAlgorithm.txx
index a8bd5ca..0a4a517 100644
--- a/Code/Review/Statistics/itkStatisticsAlgorithm.txx
+++ b/Code/Review/Statistics/itkStatisticsAlgorithm.txx
@@ -452,6 +452,14 @@ QuickSelect(TSubsample* sample,
 
 
 template< class TSubsample >
+int UnguardedPartition(TSubsample* sample,
+                       unsigned int activeDimension,
+                       int beginIndex,
+                       int endIndex,
+                       typename TSubsample::MeasurementType pivotValue );
+
+
+template< class TSubsample >
 inline typename TSubsample::MeasurementType 
 NthElement(TSubsample* sample,
             unsigned int activeDimension,
diff --git a/Code/Review/Statistics/itkWeightedCentroidKdTreeGenerator.txx b/Code/Review/Statistics/itkWeightedCentroidKdTreeGenerator.txx
index a1c77c2..4a52930 100644
--- a/Code/Review/Statistics/itkWeightedCentroidKdTreeGenerator.txx
+++ b/Code/Review/Statistics/itkWeightedCentroidKdTreeGenerator.txx
@@ -117,13 +117,13 @@ WeightedCentroidKdTreeGenerator< TSample >
   upperBound[partitionDimension] = partitionValue;
   const unsigned int beginLeftIndex = beginIndex;
   const unsigned int endLeftIndex   = medianIndex;
-  KdTreeNodeType* left = GenerateTreeLoop(beginLeftIndex, endLeftIndex, lowerBound, upperBound, level + 1);
+  KdTreeNodeType* left = this->GenerateTreeLoop(beginLeftIndex, endLeftIndex, lowerBound, upperBound, level + 1);
   upperBound[partitionDimension] = dimensionUpperBound;
 
   lowerBound[partitionDimension] = partitionValue;
   const unsigned int beginRightIndex = medianIndex+1;
   const unsigned int endRighIndex    = endIndex;
-  KdTreeNodeType* right = GenerateTreeLoop(beginRightIndex, endRighIndex, lowerBound, upperBound, level + 1);
+  KdTreeNodeType* right = this->GenerateTreeLoop(beginRightIndex, endRighIndex, lowerBound, upperBound, level + 1);
   lowerBound[partitionDimension] = dimensionLowerBound;
 
 
-- 
1.7.9.5


--------------000708070404010603010307--


More information about the Insight-users mailing list