Skip to content

Commit d39d959

Browse files
committed
COMP: Add && to unique_ptr parameter declaration, to work around SWIG
Aims to avoid errors from ITK.Linux.Python and ITK.macOS.Python like those from https://open.cdash.org/viewBuildError.php?buildid=9511958: > Wrapping/Modules/ITKImageGradient/itkGradientImageFilterPython.cpp:3856:70: > error: call to implicitly-deleted copy constructor of > `std::unique_ptr<itk::ImageBoundaryCondition<itk::Image<float, 2>>>` Using ITK's current SWIG revision, 2024-03-26-master.
1 parent 550c0f3 commit d39d959

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/Filtering/ImageGradient/include/itkGradientImageFilter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class ITK_TEMPLATE_EXPORT GradientImageFilter : public ImageToImageFilter<TInput
147147

148148
/** Allows to change the default boundary condition */
149149
void
150-
OverrideBoundaryCondition(std::unique_ptr<BoundaryConditionType> boundaryCondition);
150+
OverrideBoundaryCondition(std::unique_ptr<BoundaryConditionType> && boundaryCondition);
151151

152152
#ifdef ITK_USE_CONCEPT_CHECKING
153153
// Begin concept checking

Modules/Filtering/ImageGradient/include/itkGradientImageFilter.hxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ GradientImageFilter<TInputImage, TOperatorValueType, TOutputValue, TOutputImage>
4848
template <typename TInputImage, typename TOperatorValueType, typename TOutputValue, typename TOutputImage>
4949
void
5050
GradientImageFilter<TInputImage, TOperatorValueType, TOutputValue, TOutputImage>::OverrideBoundaryCondition(
51-
std::unique_ptr<BoundaryConditionType> boundaryCondition)
51+
std::unique_ptr<BoundaryConditionType> && boundaryCondition)
5252
{
5353
m_BoundaryCondition = std::move(boundaryCondition);
5454
}

0 commit comments

Comments
 (0)