F
fdm
In a function I have:
namespace Validation
{
template<typename T, typename M, typename I, typename R, typename P>
void compute_metric(typename P:
ointer & imageF, typename P:
ointer &
imageM, R & region, double & value) {
typedef T TransformType;
typedef M MetricType;
typedef I InterpolatorType;
TransformType:
ointer transform = TransformType::New();
MetricType:
ointer metric = MetricType::New();
InterpolatorType:
ointer interpolator = InterpolatorType::New();
On windows vista 64 in Visual Studio this compiles fine. But in Ubuntu 9.04
I get the error:
compute_metric.h:22: error: expected `;' before 'transform'
compute_metric.h:23: error: expected `;' before 'metric'
compute_metric.h:24: error: expected `;' before 'interpolator'
corresponding to the last three lines in the above code. I have made sure
that inlcudes are setup correctly, any ideas?
I have previously experienced that various statements are allowed in VS that
is not allowed on Linux.
namespace Validation
{
template<typename T, typename M, typename I, typename R, typename P>
void compute_metric(typename P:
imageM, R & region, double & value) {
typedef T TransformType;
typedef M MetricType;
typedef I InterpolatorType;
TransformType:
MetricType:
InterpolatorType:
On windows vista 64 in Visual Studio this compiles fine. But in Ubuntu 9.04
I get the error:
compute_metric.h:22: error: expected `;' before 'transform'
compute_metric.h:23: error: expected `;' before 'metric'
compute_metric.h:24: error: expected `;' before 'interpolator'
corresponding to the last three lines in the above code. I have made sure
that inlcudes are setup correctly, any ideas?
I have previously experienced that various statements are allowed in VS that
is not allowed on Linux.