Cześć :)
Jak działa domyślny konstruktor kopiujący, tzn. kopiuje on obiekty bajt po bajcie czy pole po polu? Ma to znaczenie w przypadku kiedy w obiekcie występuje padding, tj. czy ten padding jest nadpisywany czy nie?
0
2
Może być, może nie być. Implementacja ma tutaj dużo dowolności.
1
A dlaczego interesujesz się zawartością paddingu?
4
Wszystko jest napisane w standardzie C++.
12.8/15
The implicitly-defined copy/move constructor for a non-union class X performs a memberwise copy/move of its bases and members. (...) The order of initialization is the same as the order of initialization of bases and members in a user-defined constructor.