X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovegen.h;h=daee502d8ccfae5badf28894f28f1fc38317c1c9;hp=8ae80118783c626dba484598282f5abb2653e99a;hb=28b6a457c24d9202ba43a6d6703221250f0f8749;hpb=9da3b44ddc7bc9ea7094b91663cbc0f8319c46be diff --git a/src/movegen.h b/src/movegen.h index 8ae80118..daee502d 100644 --- a/src/movegen.h +++ b/src/movegen.h @@ -42,6 +42,10 @@ struct ExtMove { operator Move() const { return move; } void operator=(Move m) { move = m; } + + // Inhibit unwanted implicit conversions to Move + // with an ambiguity that yields to a compile error. + operator float() const = delete; }; inline bool operator<(const ExtMove& f, const ExtMove& s) {