Click here to Skip to main content
16,016,087 members

Comments by Anton Kaminsky (Top 1 by date)

Anton Kaminsky 21-Aug-14 14:13pm View    
Like I've wrote if I call "new B" in class A, I leave the responsibility of deleting the object to the user in the main and I don't want that.
I have added a print in the copy constructor and the destructor and it seems that the copy constructor does get executed before the destructor, but I wonder if I can count on that.