[Insight-developers] Vector name clash
Lydia Ng
lng at statsci.com
Wed Nov 15 17:04:53 EST 2000
Hi,
There seem to be a clash on the name Vector between
itk::Vector and itk::VectorContainer.
I get errors when I try to compile the following
(error message attached below) :
#include "itkVector.h"
#include "itkVectorContainer.h"
void main()
{
itk::Vector<float,2> tempVec;
}
It this only a problem in VC++ ?
Also, the error goes away if you swap the order of
the header inclusion.
Cheers,
Lydia
====Error message======
f:\lng\projects\insight-clean\insight\code\common\itkvectorcontainer.h(79) :
error C2039: 'size_type' : is not a member of 'Vector'
f:\lng\projects\insight-clean\insight\code\common\itkvector.h(239) :
see declaration of 'Vector'
f:\lng\projects\insight-clean\insight\code\common\itkvectorcontainer.h(238)
: see reference to class template instantiation
'itk::VectorContainer<TElementIdentifier,TElement>' being compiled
f:\lng\projects\insight-clean\insight\code\common\itkvectorcontainer.h(80) :
error C2039: 'iterator' : is not a member of 'Vector'
f:\lng\projects\insight-clean\insight\code\common\itkvector.h(239) :
see declaration of 'Vector'
f:\lng\projects\insight-clean\insight\code\common\itkvectorcontainer.h(238)
: see reference to class template instantiation
'itk::VectorContainer<TElementIdentifier,TElement>' being compiled
f:\lng\projects\insight-clean\insight\code\common\itkvectorcontainer.h(81) :
error C2039: 'const_iterator' : is not a member of 'Vector'
f:\lng\projects\insight-clean\insight\code\common\itkvector.h(239) :
see declaration of 'Vector'
f:\lng\projects\insight-clean\insight\code\common\itkvectorcontainer.h(238)
: see reference to class template instantiation
'itk::VectorContainer<TElementIdentifier,TElement>' being compiled
Error executing cl.exe.
More information about the Insight-developers
mailing list