[Insight-users] 'swap' : is not a member of 'std'
Luis Ibanez
luis.ibanez at kitware.com
Tue Aug 17 09:03:44 EDT 2004
Hi Bing,
Is that the only error line that you get ?
This type of error is usually preceded with a number
of errors with text like "instantiated from".
Also, are you using STL classes directly in your code ?
or do you get this error through the use of ITK classes ?
Maybe you should post to the list a code snippet of the
program that is producing the error...
Please let us know.
Thanks
Luis
-----------------
Bing Jian wrote:
> Well, the same code compiles smoothly under linux using g++.
>
>
> Bing Jian wrote:
>
>> Hi, there,
>>
>> When trying to compile my own ITK-based program, I came
>> across the following error
>> C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(221) :
>> error C2039: 'swap' : is not a member of 'std'
>> C:\Program Files\Microsoft Visual
>> Studio\VC98\INCLUDE\vector(220) : while compiling class-template
>> member function 'void __thiscall std::vector<unsigned int,class
>> std::allocator<unsigned int> >::swap(class std::vector<unsigned
>> int,class std:
>> :allocator<unsigned int> > &)'
>> ......
>> Error executing cl.exe.
>>
>> testreg.exe - 6 error(s), 0 warning(s)
>>
>> The error message does not show which line of my own code causes
>> the errors. I am wondering if
>> anybody has met this kind of errors before and like to know how to
>> solve it.
>> Many thanks in advance!
>>
>
>
More information about the Insight-users
mailing list