Closed jensmaurer closed 3 years ago
In the following example, the first parameter of memcpy should be pointer value: memcpy(expected, this, sizeof(*this));
Change the example as follows memcpy(&expected, this, sizeof(*this));
JP12
This was fixed by commit e674373e2515868ca17b24157f30515fad62b8e6 in the main branch and needs to be cherry-picked to the c++20 branch.
Final disposition: Accepted.
In the following example, the first parameter of memcpy should be pointer value: memcpy(expected, this, sizeof(*this));
Change the example as follows memcpy(&expected, this, sizeof(*this));
JP12