Hi suresh,
 
Your function is const and you are trying to assign a value to a member variable in it.
You can't do that in a const function, unless you make the member mutable,
might as well make it a non-const function
 
-Julie
 
-----Original Message-----
From: suresh [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 9:39 PM
To: [EMAIL PROTECTED]
Subject: STL List assignment error.

Hi All,
 
I tried using stl list,it throws up an error
 
d:\xmlparser\message\soap.cpp(94) : error C2678: binary '=' : no operator defined which takes a left-hand operand of type 'const class std::list<char *,class std::allocator<char *> >::iterator' (or there is no acceptable conversion)
d:\xmlparser\message\soap.cpp(95) : error C2678: binary '=' : no operator defined which takes a left-hand operand of type 'const class std::list<char *,class std::allocator<char *> >::iterator' (or there is no acceptable conversion)
i know this has got nothing to do with xerces but it thought i could seek help from people who had encountered this error before
 
i have done this assignment before it works fine in every other instance 
 
I have attached the files for you to have a look at.
 
The environment is
Operating system : Win2k
Dev. Tool : VC++ 6.0 with SP5 with Xerces 1.5
 
 
 
Thanks in advance,
Suresh
 

Reply via email to