Game Development Community

Error C2659: '=' : overloaded function as left operand

by Dracola · in General Discussion · 02/19/2005 (10:27 am) · 4 replies

Error C2659: '=' : overloaded function as left operand

I'm trying to make it so my vehicles slow down when they go to fast. I'm new to c++ and every time I try to compile I get the error shown up top. What does it mean?

#1
02/19/2005 (4:37 pm)
At a guess, the most likely reason is that on the left side, you're setting it equal to a function. One that doesn't have an equals sign operator defined for it.

Try commenting out your code and narrowing it down to the line.

I suspect though you probably are doing a:

functionspeed()=newspeed;

instead of a functionspeed(newspeed);

or a: public variablespeed=newspeed;
#2
02/20/2005 (7:18 pm)
Public variablespeed etc.. etc.. worked but it kept asking for an ';' infront of public even when I had one/or more. I'm probably using a bad term I'll try something else
#3
02/20/2005 (7:26 pm)
Public variablespeed etc.. etc.. worked but it kept asking for an ';' infront of public even when I had one/or more. I'm probably using a bad term I'll try something else
#4
02/18/2006 (11:40 am)
Public variablespeed -> $variablespeed