|
-
April 16th, 2008, 06:40 AM
#5
Re: override vector::insert
 Originally Posted by paradoxresolved
Rats. I'm going to have to recreate the interface for .at(..), .push_back(..), .pop_back(), .size(), as well as .insert(..), and perhaps a few others that I'm not readily thinking of. . .
.at(..) returns const_reference, which apparently isn't the same thing as T&.
What exactly are you trying to accomplish by deriving from std::vector?
Is the NO way to force the destructor for vector,
What do you mean by "force the destructor"?
so that I can keep my vector class as derived??
Since you derived from vector, when your object is destroyed, vector is destroyed. There is no such thing as destroying a parent and having the derived remain intact.
Regards,
Paul McKenzie
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
|