Hi all,
struct S
{
int x;
S(int y): x(y) { } // 1
S(int y) { x = y; } // 2
}
Is there any difference between 1 and 2 regarding code optimizations that
the compiler may apply?
Best regards,
Marcin
struct S
{
int x;
S(int y): x(y) { } // 1
S(int y) { x = y; } // 2
}
Is there any difference between 1 and 2 regarding code optimizations that
the compiler may apply?
Best regards,
Marcin
Comment