| 1 |
#include "semantic.ih" |
| 2 |
|
| 3 |
void Semantic::swap(Semantic &other) |
| 4 |
{ |
| 5 |
char buffer[sizeof(Semantic)]; |
| 6 |
|
| 7 |
memcpy(buffer, this, sizeof(Semantic)); |
| 8 |
memcpy(reinterpret_cast<char *>(this), &other, sizeof(Semantic)); |
| 9 |
memcpy(reinterpret_cast<char *>(&other), buffer, sizeof(Semantic)); |
| 10 |
} |