assignment vs initialization
We have a coding guideline that says
"Always use () instead of =, unless not possible (code optimization).
For example: int x(3); instead of int x = 3;"
so we are not allowed to type X x = 2;
The argument being that it is faster to use the X x(2) form because then only the constructor is called and with X x = 2 the constructor is called and then the copy constructor.
Im convinced this is just not true but I can't persuade them and I cant find the paragraph in the standard where it talks about explicit constructor calls and the form with '='.
Anyone knows where to find this or am I wrong in thinking that the forms dont differ?