From c15c2e537516a38af34888b6c5f130fe559efe58 Mon Sep 17 00:00:00 2001 From: Topologist Date: Tue, 23 Jan 2024 13:41:00 +0100 Subject: [PATCH] tmp --- src/movegen.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/movegen.h b/src/movegen.h index 5f650d2e36d..f68951d4fa3 100644 --- a/src/movegen.h +++ b/src/movegen.h @@ -21,6 +21,8 @@ #include // IWYU pragma: keep #include +#include +#include #include "types.h" @@ -41,6 +43,9 @@ struct ExtMove: public Move { int value; void operator=(Move m) { data = m.raw(); } + void operator=(ExtMove m) { + std::memcpy(this, &m, sizeof(ExtMove)); + } // Inhibit unwanted implicit conversions to Move // with an ambiguity that yields to a compile error.