X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovegen.h;h=825605704c920ebd52220ae4b63ec9b35ecf66a3;hp=8ae80118783c626dba484598282f5abb2653e99a;hb=d482e3a8905ee194bda3f67a21dda5132c21f30b;hpb=9001f55147fa304223623a6de0025ffe79f5fcc3 diff --git a/src/movegen.h b/src/movegen.h index 8ae80118..82560570 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; }; inline bool operator<(const ExtMove& f, const ExtMove& s) {