Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error C2593: 'operator +=' is ambiguous (watch my code) 1

Status
Not open for further replies.

d00ape

Programmer
Joined
Apr 2, 2003
Messages
171
Location
SE
How come that this line will compile in VS 6.0 but not in VS 7.0?

strOut += strData[iPos] ^ strKey[iKeyPos++];

strOut, strData and strKey are Cstring.
IPos and iKeyPos is int.

I got the compiler error: C2593: 'operator +=' is ambiguous

Thanks
 
try
strOut += (char)strData[iPos] ^ strKey[iKeyPos++];

Ion Filipski
1c.bmp
 
Really thanks (again) :-) Ion!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top