N
none
In a class I do:
#include "MyImageImages.h"
#include ""
class Test{
public:
....
....
typedef typename MyImageTypes::Image<PixelType, Dimension> ImageType;
typedef MyClass<ImageType> MyClassType;
// This gives an error:
typedef typename MyClassType::ImageType ImageType2;
};
Where:
template< typename ImageType >
class MyClass {
public:
};
I get an error when I try to access the template parameter in MyClass. I
have tried to typedef the template parameter and rename it like:
typedef ImageType Bob;
and then I can do (ion class Test):
typedef typename MyClassType::Bob ImageType2;
Is it only possible to access template parameters that have been typedef'ed?
#include "MyImageImages.h"
#include ""
class Test{
public:
....
....
typedef typename MyImageTypes::Image<PixelType, Dimension> ImageType;
typedef MyClass<ImageType> MyClassType;
// This gives an error:
typedef typename MyClassType::ImageType ImageType2;
};
Where:
template< typename ImageType >
class MyClass {
public:
};
I get an error when I try to access the template parameter in MyClass. I
have tried to typedef the template parameter and rename it like:
typedef ImageType Bob;
and then I can do (ion class Test):
typedef typename MyClassType::Bob ImageType2;
Is it only possible to access template parameters that have been typedef'ed?