Hi everyone,<br><br>I am having problems with compiling the following bit of code:<br><br>Say I have a class declaration as follows:<br><br>class ITK2VTK<br>{<br>public:<br> template<typename T><br> void Test()<br>
{<br> typedef itk::Image<T, 3> ImageType;<br> typedef itk::VTKImageExport<ImageType> ExportFilterType;<br> // The following line gives the error.<br>
typedef itk::VTKImageExport<ImageType>::Pointer ExportFilterPointer;<br> <br> ExportFilterType::Pointer ExportFilterPointer;<br> ExportFilterPointer itkExporter = ExportFilterType::New();<br>
}<br>};<br><br>The line: typedef itk::VTKImageExport<ImageType>::Pointer ExportFilterPointer; fails with the following error:<br><br>error: too few template-parameter-lists<br><br>Doing a search on the Internet yielded people with the same problems but with static class members. However, I do not have any static definitions here...<br>
<br>Anyone has any idea what is happening here?<br clear="all"> <br>Cheers,<br><br>Anja