[Insight-developers] assert and explicit instantiations
Luis Ibanez
luis.ibanez at kitware.com
Sun Jun 14 12:43:56 EDT 2009
Hi Gaetan,
You should probably use the new Macro:
itkAssertOrThrowMacro
That is defined in
Insight/Code/Common/itkMacro.h
It will use Asserts when compiled in Debug mode,
and it will throw Exceptions when compiled in
Release mode.
Luis
-----------------------
Gaëtan Lehmann wrote:
>
> Hi Julien,
>
> I have commented an assert() in
>
> Code/Common/itkTreeIteratorBase.h
> Code/Common/itkTreeIteratorBase.h
>
> to fix build with explicit instantiation.
> The compiler was giving that error:
>
> /export/home/glehmann/src/Insight/Code/Common/itkTreeIteratorBase.h:
> 182: erreur: ‘assert’ was not declared in this scope
>
> Is it the expected behavior?
>
> Thans,
>
> Gaëtan
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> 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://www.itk.org/mailman/listinfo/insight-developers
More information about the Insight-developers
mailing list