[Insight-users] Implicit typename problems
Harri Tapio Jaalinoja
harri.jaalinoja@helsinki.fi
Wed, 27 Nov 2002 16:22:58 +0200 (EET)
Hi folks,
false alarm, I spotted the "typename" keyword in typedefs including smart
Pointers in ITK source.
Not that I understand why, things compile again :)
Harri
On Tue, 26 Nov 2002, Harri Tapio Jaalinoja wrote:
>
> Hi all!
>
> I have tried to bring some structure to my code, the purpose of which is
> to make ITK filters usable from another package (BSoft) that is used in
> our group. The current setup briefly (attached bitk.tar.gz):
>
> itk_filters.h
> - all filtering function definitions here
>
> itk_filters.cxx
> - implementations of the above
>
> bitkITKFilter .h and .txx
> - base class for all wrapper classes
> - code for importing data to filters goes here
>
> bitkShiftScale .h and .txx
> - example of a wrapper class
> - depending on demand, the wrappers may include single filters or
> pipelines of several filters
>
> The problem looks like this:
>
> [hajaalin@gene Build]$ make
> /usr/bin/g++ -I/home/hajaalin/work/Watershed/Code/Insight
> -I/usr/local/Insight/Build -I/usr/local/Insight/Build/Code/Numerics/vxl
> -I/usr/local/Insight/Build/Code/Numerics/vxl/vcl
> -I/usr/local/Insight/Code/Algorithms
> -I/usr/local/Insight/Code/BasicFilters -I/usr/local/Insight/Code/Common
> -I/usr/local/Insight/Code/IO -I/usr/local/Insight/Code/Numerics/FEM
> -I/usr/local/Insight/Code/Numerics
> -I/usr/local/Insight/Code/Numerics/Statistics
> -I/usr/local/Insight/Code/Numerics/vxl
> -I/usr/local/Insight/Code/Numerics/vxl/vcl
> -I/usr/local/Insight/Code/SpatialObject
> -I/usr/local/Insight/Utilities/GlutMaster
> -I/usr/local/Insight/Utilities/MetaIO -I/usr/local/Insight/Utilities/png
> -I/usr/local/Insight/Utilities/zlib
> -I/usr/local/Insight/Auxiliary/FltkImageViewer
> -I/usr/local/Insight/Build/Auxiliary/FltkImageViewer
> -I/usr/local/Insight/Auxiliary/VtkFltk
> -I/usr/local/Insight/Build/Auxiliary/VtkFltk -I/usr/local/bsoft/include
> -D_PTHREADS -c /home/hajaalin/work/Watershed/Code/Insight/itk_filters.cxx
> -o itk_filters.o
> In file included from
> /home/hajaalin/work/Watershed/Code/Insight/bitkITKFilter.h:34,
> from
> /home/hajaalin/work/Watershed/Code/Insight/bitkShiftScale.h:7,
> from
> /home/hajaalin/work/Watershed/Code/Insight/itk_filters.cxx:9:
> /home/hajaalin/work/Watershed/Code/Insight/bitkITKFilter.txx: In member
> function `void bitk::ITKFilter<TPixel>::SetImage(Bimage*)':
> /home/hajaalin/work/Watershed/Code/Insight/bitkITKFilter.txx:28: warning:
> `typename itk::ImportImageFilter<TPixel, 3>::Pointer' is implicitly a
> typename
> /home/hajaalin/work/Watershed/Code/Insight/bitkITKFilter.txx:28: warning:
> implicit typename is deprecated, please see the documentation for details
> /home/hajaalin/work/Watershed/Code/Insight/bitkITKFilter.txx:28: parse
> error before `,' token
> /home/hajaalin/work/Watershed/Code/Insight/bitkITKFilter.txx:42: warning:
> `typename itk::Image<TPixel, 3>::Pointer' is implicitly a typename
> /home/hajaalin/work/Watershed/Code/Insight/bitkITKFilter.txx:42: warning:
> implicit typename is deprecated, please see the documentation for details
> In file included from
> /home/hajaalin/work/Watershed/Code/Insight/itk_filters.cxx:9:
> /home/hajaalin/work/Watershed/Code/Insight/bitkShiftScale.h: At global
> scope:
> /home/hajaalin/work/Watershed/Code/Insight/bitkShiftScale.h:23: warning:
> `typename itk::ShiftScaleImageFilter<itk::Image<TPixel, 3>,
> itk::Image<TPixel, 3> >::Pointer' is implicitly a typename
> /home/hajaalin/work/Watershed/Code/Insight/bitkShiftScale.h:23: warning:
> implicit typename is deprecated, please see the documentation for details
> make[1]: *** [itk_filters.o] Error 1
> make: *** [default_target] Error 2
> [hajaalin@gene Build]$
>
> What can you make of this? I can't see how my typedefs differ from ones
> I've seen in Indight code.
>
> I hope the code I attached gives you an idea about
> what I'm trying to do. I'm grateful of any suggestions as to how to do it,
> if the current way is all messed up.
>
> Thanks!
>
> Harri
>