print out address of object to copy in copy constructor

master
neingeist 11 years ago
parent 235d604757
commit 66d0728e00

@ -7,7 +7,7 @@ class Animal {
std::cout << "constructor" << std::endl;
}
Animal(const Animal& other) {
std::cout << "copy constructor" << std::endl;
std::cout << "copy constructor (" << &other << ")" << std::endl;
}
// Note: using *virtual* does the difference here!

Loading…
Cancel
Save