]> git.sesse.net Git - stockfish/blobdiff - src/movegen.h
Fix involuntary conversions of ExtMove to Move
[stockfish] / src / movegen.h
index 8ae80118783c626dba484598282f5abb2653e99a..825605704c920ebd52220ae4b63ec9b35ecf66a3 100644 (file)
@@ -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) {