[Insight-developers] assert and explicit instantiations

Peter Cech pcech at vision.ee.ethz.ch
Sun Jun 14 10:16:35 EDT 2009


On Sun, Jun 14, 2009 at 01:58:40PM +0200, 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

That's usually a sign of missing include for assert:

  #include <cassert>

Regards,
Peter


More information about the Insight-developers mailing list