Conversion Operators in C++
You can walk through that code with a debugger (and/or put a breakpoint on each of your constructors and operators) to see which of your constructors and operators is being invoked by which lines. Because you didn’t define them explicitly, the compiler also created a hidden/default copy constructor and assignment operator for your class. You … Read more