From b76842e6d3896a2f3feb20fb9fae53664f3a9a7a Mon Sep 17 00:00:00 2001 From: Simon Rit Date: Thu, 1 Jan 2026 11:46:00 +0000 Subject: [PATCH] COMP: Missing ITK_FUTURE_LEGACY_REMOVE in VariableLengthVector Fixes compile errors ``` /home/sritrtk/dashboard_tests/ITK-main/Modules/Core/Common/include/itkVariableLengthVector.hxx:203:1: error: no declaration matches 'TValue* itk::VariableLengthVector::AllocateElements(itk::VariableLengthVector::ElementIdentifier) const' 203 | VariableLengthVector::AllocateElements(ElementIdentifier size) const | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ [CTest: warning matched] /home/sritrtk/dashboard_tests/ITK-main/Modules/Core/Common/include/itkVariableLengthVector.hxx:203:1: note: no functions named 'TValue* itk::VariableLengthVector::AllocateElements(itk::VariableLengthVector::ElementIdentifier) const' ``` --- Modules/Core/Common/include/itkVariableLengthVector.hxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Modules/Core/Common/include/itkVariableLengthVector.hxx b/Modules/Core/Common/include/itkVariableLengthVector.hxx index b9666b7862e..d790f7128a2 100644 --- a/Modules/Core/Common/include/itkVariableLengthVector.hxx +++ b/Modules/Core/Common/include/itkVariableLengthVector.hxx @@ -198,6 +198,7 @@ VariableLengthVector::Reserve(ElementIdentifier size) itkAssertInDebugAndIgnoreInReleaseMacro(m_Data != nullptr); } +#ifndef ITK_FUTURE_LEGACY_REMOVE template TValue * VariableLengthVector::AllocateElements(ElementIdentifier size) const @@ -213,6 +214,7 @@ VariableLengthVector::AllocateElements(ElementIdentifier size) const itkGenericExceptionMacro("Failed to allocate memory of length " << size << " for VariableLengthVector."); } } +#endif template void