Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #9146
| 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 <ian-news@hotmail.com> |
| 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> (permalink) |
| 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 |
Show key headers only | View raw
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
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Operator overloading in memberclass. Marz <marzkrishna@gmail.com> - 2011-08-21 15:26 -0700
Re: Operator overloading in memberclass. Ian Collins <ian-news@hotmail.com> - 2011-08-22 11:42 +1200
Re: Operator overloading in memberclass. Marz <marzkrishna@gmail.com> - 2011-08-21 20:17 -0700
Re: Operator overloading in memberclass. Nick Keighley <nick_keighley_nospam@hotmail.com> - 2011-08-22 04:12 -0700
Re: Operator overloading in memberclass. Marz <marzkrishna@gmail.com> - 2011-08-22 10:15 -0700
Re: Operator overloading in memberclass. Nobody <nobody@nowhere.com> - 2011-08-22 20:00 +0100
Re: Operator overloading in memberclass. Marz <marzkrishna@gmail.com> - 2011-08-22 14:28 -0700
Re: Operator overloading in memberclass. "Balog Pal" <pasa@lib.hu> - 2011-08-22 13:25 +0200
Re: Operator overloading in memberclass. Marz <marzkrishna@gmail.com> - 2011-08-22 10:19 -0700
Re: Operator overloading in memberclass. "Balog Pal" <pasa@lib.hu> - 2011-08-22 22:42 +0200
Re: Operator overloading in memberclass. Victor Bazarov <v.bazarov@comcast.invalid> - 2011-08-22 13:32 -0400
csiph-web