Skip to content

Commit

Permalink
COMP: Add template to TransformPhysicalPointToContinuousIndex in tests
Browse files Browse the repository at this point in the history
Added missing `template` keywords to TransformPhysicalPointToContinuousIndex
calls in Nonunit/Review tests.

Addressed compile errors from Ubuntu-22.04-gcc11.2-TBB-Debug saying:

> error: expected primary-expression before '>' token

These compile errors were introduced by pull request InsightSoftwareConsortium#4000
commit 7cda5ba
"COMP: Fix TransformPhysicalPointToContinuousIndex `nodiscard` warnings"
  • Loading branch information
N-Dekker committed Apr 9, 2023
1 parent 1360648 commit d999ad6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ itkDiscreteGradientMagnitudeGaussianImageFunctionTestND(int argc, char * argv[])

inputImage->TransformIndexToPhysicalPoint(it.GetIndex(), point);
const ContinuousIndexType cindex =
inputImage->TransformPhysicalPointToContinuousIndex<ContinuousValueIndexType>(point);
inputImage->template TransformPhysicalPointToContinuousIndex<ContinuousValueIndexType>(point);
out.Set(function->EvaluateAtContinuousIndex(cindex));
}
++it;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ itkDiscreteHessianGaussianImageFunctionTestND(int argc, char * argv[])

reader->GetOutput()->TransformIndexToPhysicalPoint(it.GetIndex(), point);
const ContinuousIndexType cindex =
reader->GetOutput()->TransformPhysicalPointToContinuousIndex<ContinuousIndexValueType>(point);
reader->GetOutput()->template TransformPhysicalPointToContinuousIndex<ContinuousIndexValueType>(point);
hessian = function->EvaluateAtContinuousIndex(cindex);
}

Expand Down

0 comments on commit d999ad6

Please sign in to comment.