[ITK-dev] Bug in the library, or just in the test..?
HERMITTE Luc
luc.hermitte at c-s.fr
Sat Oct 24 08:36:40 EDT 2015
Hi,
"Johnson, Hans J" <hans-johnson at uiowa.edu> a écrit :
> This is not a bug in std::fill_n
>
> The bug is “&this->m_Data[0]”.
That's what I was thinking as well since last night.
How is VC++ responding to just "this->m_Data" ? (and this->m_Data +
this->GetSize() where needed)
> I think that we need to check for this degenerate case.
Useless tests are one of the things I trying to get rid of in my
series of patches for better performances with VariableLengthVectors.
If VC++ crashes with this simplified syntax, then the best solution is
to fall back to simple loop, or may be an itk::fill_n, and itk::copy
that doesn't check for the non-nullity of the input pointer.
Regards,
--
Luc Hermitte
More information about the Insight-developers
mailing list