X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmovegen.h;h=825605704c920ebd52220ae4b63ec9b35ecf66a3;hb=486c8175c4f48381b137e3d914d38d9bb8c39ba2;hp=8ae80118783c626dba484598282f5abb2653e99a;hpb=9da3b44ddc7bc9ea7094b91663cbc0f8319c46be;p=stockfish 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) {