Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
TopoIogist committed Jan 23, 2024
1 parent a6fd17f commit c15c2e5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/movegen.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

#include <algorithm> // IWYU pragma: keep
#include <cstddef>
#include <cstring>
#include <type_traits>

#include "types.h"

Expand All @@ -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.
Expand Down

0 comments on commit c15c2e5

Please sign in to comment.