4 ms·
This may be true for simple structs but is definitely wrong as a general statement. Compilers cannot anticipate semantics.
by ExpiredLink 11y ago
This may be true for simple structs but is definitely wrong as a general statement. Compilers cannot anticipate semantics.
- TheCoelacanth 11y agoIt is true for all copy constructors in C++ since the standard allows compilers to perform copy elision.