|
-
February 5th, 2009, 06:30 PM
#10
Re: Simple class, delete exception
Ok I need to rescue my credibility here. I know exactly what copy and assignment constructors are and how they work and why you need them. I'm not here for a programming lesson. I'm in second year computer science and would hope that all second year computer science students know what copy and assignment constructors are by now.
I have just just started this project (hence the very scantily-clad classes). In my main(), the only thing I do is create an array of Cell classes, then delete them. Nothing else happens yet. The GameObject class also has barely any code in it.
All I want to know is, why can't I initialize a Cell containing a private pointer to a GameObject, then delete the Cell and the GameObject?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|