Код: Выделить всё
#include
#include
#include
int main() {
alignas(std::complex) unsigned char buf[sizeof(std::complex)] {
0xcd, 0xcc, 0xcc, 0x3d, 0xcd, 0xcc, 0x4c, 0x3e
};
auto d1 = *reinterpret_cast(buf);
std::cout ~A();
std::free(buf);
}
Подробнее здесь: https://stackoverflow.com/questions/796 ... -already-e