On Fri, 23 Jun 2006, Levi Bard wrote:
>> 76 friend SimpleWindow;
>> 217 friend WindowManager;
>
> Try changing these to "friend class SimpleWindow;" and "friend class
> WindowManager;"
>
>> 155 ~SimpleWindow();
>> I don't see the word "virtual" anywhere around lines 149-155; should I?
>
> It's good practice to always make destructors virtual; it's warning
> you because you didn't.
Thanks, that appears to have worked. I made a copy of the file as it was,
just in case. Strange the prof hasn't mentioned virtual {con,des}tructors;
I guess he's simplifying for the newbies. Hopefully he'll reveal The Way
Things Are Done later, instead of unleashing a horde of bad programmers on
the world.
-- -eben QebWenE01R@vTerYizUonI.nOetP http://royalty.no-ip.org:81 An ASCII character walks into a bar and orders a double. "Having a bad day?" asks the barman. "Yeah, I have a parity error," replies the ASCII chrcter. The barman says, "Yeah, I thought you looked a bit off." - Skud ----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.
This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:15:53 EDT