Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #9146
| From | Ian Collins <ian-news@hotmail.com> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: Operator overloading in memberclass. |
| Date | 2011-08-22 11:42 +1200 |
| Message-ID | <9bdjf7Fr0aU4@mid.individual.net> (permalink) |
| References | <6468f4d9-f386-43c6-a423-701d701bc1fa@glegroupsg2000goo.googlegroups.com> |
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