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