Am 03.03.23 um 18:05 schrieb Paavo Helde:
I can't read the Finish one, but the Polish question (probably
accidentally) asks what is the difference between the initializer and
what is it good for, if we can simply use the assignemnt.
The answer is that in some cases, there is a difference between calling
the constructor and assigning. E.g.
std::vector<int> v(30);
vs.
std::vector<int> v;
v = ... ; // now what?
In this case it might simply be inefficient, in other cases impossible
to assign - e.g. with a reference variable.
Christian