Hi Mikhail,
I am somewhat guessing here, but did you try changing your typedef to
typedef itk::MaximumImageFilter<TImage> MaximumImageFilterType;
assuming you are within the itk namespace, I am not sure if every compiler
reacts the same way to hiding the template by typedef.
If that does not work, could you provide the exact error message?
Best,
Caspar
Von: Pukhlikov Mikhail [mailto:[email protected]]
Gesendet: Donnerstag, 16. Juli 2015 15:49
An: [email protected]
Betreff: [mitk-users] Difference with dependent templates on GNU C++ compiler
With Visual C++ compiler below code works
template <typename TImage>
typename TImage::Pointer maximumTwoImages(const TImage* image1, const
TImage* image2) {
typedef itk::MaximumImageFilter<TImage> MaximumImageFilter;
MaximumImageFilter::Pointer maxImage = MaximumImageFilter::New();
But with GNU C++ (with -std=c++11) I'm getting: itk::MaximumImageFilter does
not a template type
even if I add `typename` to last line error will be the same.
How to deal with g++ here? Thank you
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users