A basic copy constructor
| 20 | |
| 21 | // A basic copy constructor |
| 22 | Box::Box(const Box& box) |
| 23 | : m_length{ box.m_length }, m_width{ box.m_width }, m_height{ box.m_height } |
| 24 | { |
| 25 | std::cout << "Copy constructor called." << std::endl; |
| 26 | } |
| 27 | |
| 28 | // A delegating copy constructor |
| 29 | //Box::Box(const Box& box) : Box{ box.m_length, box.m_width, box.m_height } |
nothing calls this directly
no outgoing calls
no test coverage detected