C++: Constructor invocation when initializing from a function returning a reference to *this
I’m trying to understand the exact behavior of object initialization in C++ when using a function that returns a reference to *this
. Consider the following generic code: