[Insight-users] itkStaticConstMacro

Dennis Jen dsjen at nmr.mgh.harvard.edu
Wed Jan 17 14:42:09 EST 2007


Hi,
  When I upgraded from ITK 2.6.0 to 3.0.0, I got a compile error in a 
filter I was working on.  It looks like the itkStaticConstMacro is only 
valid for the integer type now.  This line:

  itkStaticConstMacro( DEFAULT_REPLICA_EXCHANGE_PROBABILITY, double, 0.05 )

causes the following error:

MY_PATH/itkPoistatsFilter.h:375: error: enumerator value for 
`DEFAULT_REPLICA_EXCHANGE_PROBABILITY' not integer constant
make[2]: *** [CMakeFiles/PoistatsCLI.dir/PoistatsCLI.o] Error 1
make[1]: *** [CMakeFiles/PoistatsCLI.dir/all] Error 2
make: *** [all] Error 2

  Is there prescribed way to do this?
  Thanks,
    Dennis


More information about the Insight-users mailing list