1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-19 11:44:48 +00:00

hopefully fixed yet another C++20 bug

This commit is contained in:
Zeno Rogue 2024-05-16 21:11:13 +02:00
parent a70a9dc663
commit 1a70e54e24

View File

@ -29,7 +29,7 @@ struct gamedata {
::new (&record[index]) T(std::move(x));
}
else {
T& at = (T&) record[index];
T& at = *((T*) (void*) &(record[index]));
x = std::move(at);
at.~T();
}