[ITK] [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
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-developers


More information about the Community mailing list