Skip to content

Commit f3697ed

Browse files
authored
Merge pull request InsightSoftwareConsortium#5712 from SimonRit/AllocateElements_declaration
COMP: Missing ITK_FUTURE_LEGACY_REMOVE in VariableLengthVector
2 parents 160dbfd + b76842e commit f3697ed

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Modules/Core/Common/include/itkVariableLengthVector.hxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ VariableLengthVector<TValue>::Reserve(ElementIdentifier size)
198198
itkAssertInDebugAndIgnoreInReleaseMacro(m_Data != nullptr);
199199
}
200200

201+
#ifndef ITK_FUTURE_LEGACY_REMOVE
201202
template <typename TValue>
202203
TValue *
203204
VariableLengthVector<TValue>::AllocateElements(ElementIdentifier size) const
@@ -213,6 +214,7 @@ VariableLengthVector<TValue>::AllocateElements(ElementIdentifier size) const
213214
itkGenericExceptionMacro("Failed to allocate memory of length " << size << " for VariableLengthVector.");
214215
}
215216
}
217+
#endif
216218

217219
template <typename TValue>
218220
void

0 commit comments

Comments
 (0)