Posted by Daniel Longest on April 21, 2001 at 22:40:22:
In Reply to: Copy constructor, OO =, destructor question posted by Aaron Shook on April 21, 2001 at 21:37:17:
Storing raw pointers in the STL will not work well becuase the STL list copy ctor will copy the pointers but will not allocate memory for them. You should probably either implement a copy constructor/operator= but make them private so they can't be used or implement them properly.
: Is a copy constructor, etc really necessary in Ecosystem with two aggregated stl lists, since the stl lists already have copy constructor, destructors, etc?
: I'm just curious because it's definitely not necessary for my program to run, but I don't want to lose points for something I could do (although it'd be a waste to do, in my opinion)
Post a Followup