Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!nx01.iad01.newshosting.com!newshosting.com!69.16.185.16.MISMATCH!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!news3.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Ian Collins Newsgroups: comp.lang.c++ Subject: Re: Operator overloading in memberclass. Date: Mon, 22 Aug 2011 11:42:31 +1200 Lines: 27 Message-ID: <9bdjf7Fr0aU4@mid.individual.net> References: <6468f4d9-f386-43c6-a423-701d701bc1fa@glegroupsg2000goo.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net BZyRt+TboKcAkqd2O8qOOg68HG2MUPGeCfh4HoCLODUbGyLuW/ Cancel-Lock: sha1:BxPZpl32ECDlJE6Xm9urXsonuMs= User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.2.9) Gecko/20101021 Lightning/1.0b2 Thunderbird/3.1.4 In-Reply-To: <6468f4d9-f386-43c6-a423-701d701bc1fa@glegroupsg2000goo.googlegroups.com> Xref: x330-a1.tempe.blueboxinc.net comp.lang.c++:9146 On 08/22/11 10:26 AM, Marz wrote: [Please try a wrap your lines. Looks like yet another google blunder] > I'm running ubuntu 11.04 using codeblocks. I'm working on an SDL based game. And, I keep getting the following error: error: no match for ‘operator=’ in ‘*(((Animation*)this)->Animation::FrameList + ((unsigned int)(((unsigned int)index) * 44u))) = frame’ Why would you write such awful code? > Here's a reduced representation of the code. > > //character.h//////////////////////////////////////////////////////// > class Frame > { > public: > Frame operator=(const Frame frame);/*<---...tried every > configuration of this line.*/ Have you tried Frame operator=( const Frame& ); -- Ian Collins