[Insight-users] Array of Pointers and Visual C++ (expected constant
expression)
Lagaffe
lagaffe74130 at yahoo.fr
Tue Feb 1 12:25:36 EST 2005
hello,
I try to create an array of pointers at runtime using a function like:
int NumberOfRegions=myfuntion(...);
and then,
typedef itk::Statistics::ListSample< MeasurementVectorType > SampleType;
SampleType::Pointer SRGSample[NumberOfRegions];
this code compile well with gcc but with visual C++ I have an error:
error C2057: expected constant expression
Thanks for help
lagaffe
---------------------------------
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails !
Créez votre Yahoo! Mail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20050201/dfc75c5a/attachment.html
More information about the Insight-users
mailing list