Skip to content

Commit

Permalink
STYLE: Make conversion from value to itk::Point or itk::Vector explicit
Browse files Browse the repository at this point in the history
Allowing ITK_LEGACY_REMOVE=0N for ITK version >= 5.3rc04, which made those constructors `explicit`:

 - ITK pull request InsightSoftwareConsortium/ITK#3237 commit InsightSoftwareConsortium/ITK@8825834 "ENH: Declare converting `Point(v)` constructors `explicit`"
 - ITK pull request InsightSoftwareConsortium/ITK#3255 commit InsightSoftwareConsortium/ITK@abb88cc "ENH: Make Vector constructor from scalar explicit, unless LEGACY enabled"
  • Loading branch information
N-Dekker committed Jul 25, 2022
1 parent 8545e5f commit 74bce87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Common/GTesting/elxTransformIOGTest.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,8 @@ struct WithDimension

const auto imageContainer = elx::ElastixBase::DataObjectContainerType::New();
const auto image = itk::Image<float, NDimension>::New();
image->SetOrigin(testValue);
image->SetSpacing(testValue);
image->SetOrigin(itk::Point<double, NDimension>(testValue));
image->SetSpacing(itk::Vector<double, NDimension>(testValue));
imageContainer->push_back(image);

elastixObject->SetFixedImageContainer(imageContainer);
Expand Down

0 comments on commit 74bce87

Please sign in to comment.