Skip to content

Commit fbde019

Browse files
committed
COMP: Remove NthElementPixelAccessor::operator= for VariableLengthVector
Let the assignment operator be implicitly defaulted (compiler generated), for the VariableLengthVector specific template specialization of NthElementPixelAccessor. Aims to address warnings appearing on Linux/GCC 11.4.0 saying: warning: implicitly-declared 'constexpr NthElementPixelAccessor::NthElementPixelAccessor(const NthElementPixelAccessor&)' is deprecated [-Wdeprecated-copy] Follow-up to pull request InsightSoftwareConsortium#5849 commit 00ead18 "COMP: Let NthElementPixelAccessor follow the Rule of Zero"
1 parent c79274e commit fbde019

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

Modules/Core/ImageAdaptors/include/itkNthElementPixelAccessor.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -199,15 +199,6 @@ class NthElementPixelAccessor<TOutputPixelType, itk::VariableLengthVector<TPixel
199199

200200
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(Self);
201201

202-
/** Assignment operator */
203-
NthElementPixelAccessor &
204-
operator=(const NthElementPixelAccessor & accessor)
205-
{
206-
m_ElementNumber = accessor.m_ElementNumber;
207-
this->SetVectorLength(accessor.GetVectorLength());
208-
return *this;
209-
}
210-
211202
protected:
212203
using Superclass = DefaultVectorPixelAccessor<TPixelType>;
213204

0 commit comments

Comments
 (0)