[Insight-users] Finally built ITK

Luis Ibanez luis.ibanez@kitware.com
Wed, 13 Nov 2002 19:38:55 -0500


Hi Mdl,

Could you please give us more details  about
the platform and compiler in which this change
was needed ?


   Thanks


      Luis


===========================================


Mdl wrote:

> Hi ITK-ers,
> 
> I finally did it and got ITK built properly. I want to tell you how I did,
> just in case anyone may have the same problem or this can be helpful for
> someone.
> 
> I had to change itk_alloc.h code, exactly these lines:
> 
> static value_type *allocate(size_t n)
> { return 0 == n? 0 : (value_type*) alloc_type().allocate(n * chunk, 0); }
> 
> static value_type *allocate(void)
> 
> { return (value_type*) alloc_type().allocate(chunk, 0); }
> 
> 
> 
> ...became:
> 
> 
> 
> static value_type *allocate(size_t n)
> 
> { return 0 == n? 0 : (value_type*) alloc_type().allocate(n * chunk); }
> 
> static value_type *allocate(void)
> 
> { return (value_type*) alloc_type().allocate(chunk); }
> 
> 
> 
> I had to do this because the compiler went on saying that the method didn't
> take two parameters. I did it without worry because the second parameter is
> absolutely useless when it is 0 (see std help for the reason).
> 
> 
> 
> Bye,
> 
> Marco
>