auto_ptr transfer of ownership behaviorAchhhhh. print should have been virtual. My mistake. Never mind.
auto_ptr transfer of ownership behaviorThanks jsmith. I'm still trying to get my head around auto_ptr behavior. Consider the following c...
auto_ptr transfer of ownership behaviorThanks, jsmith for the Aha moment. You're saying if A::print accessed an instance variable, it wo...
auto_ptr transfer of ownership behaviorIt did *not* segfault. I want the ownership to pass to b, but apparently it did not. Take another lo...
auto_ptr transfer of ownership behaviorHello. I apologize if this question has been asked before. Consider the following code: #inclu...
This user does not accept Private Messages