5 ms·
Both are legal statements. The second one is a direct initialization, invoking corresponding constructor. The first one first invokes default constructor and
by dmitrykoval 5y ago
Both are legal statements.
The second one is a direct initialization, invoking corresponding constructor.
The first one first invokes default constructor and then copy or move assignment depending on rvalueness of the arg.