unexpected type
От: tiam Россия  
Дата: 04.05.06 09:02
Оценка:
Столкнулся с такой дилеммой:

namespace VFC
{
    template <class T> class PixelStorage;
      ....
};


Если так

class ProbeAlgorithm
{

public:
    typedef VFC::PixelStorage<UInt16>         VolumeData;

    ProbeAlgorithm (const VolumeData& volRR1,  
                          const VolumeData& volRR4);
   .....
};

то пишет 'unexpected type 'ProbeAlgorithm::VolumeData'
а если так:

.....
typedef typename VFC::PixelStorage<UInt16>         VolumeData;
.....


То пишет 'typename cannot be used outside a template declaration'

 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.