]> git.sesse.net Git - stockfish/blobdiff - src/color.h
Use simple macro to enable operators
[stockfish] / src / color.h
index c946a548e2ebedded0618845cf3a81bf0f0fac8a..08eb8d8183c6edbdb9fc572003a5af1e49f42f6a 100644 (file)
@@ -21,6 +21,7 @@
 #if !defined(COLOR_H_INCLUDED)
 #define COLOR_H_INCLUDED
 
+#include "types.h"
 
 ////
 //// Types
@@ -37,6 +38,8 @@ enum SquareColor {
   LIGHT
 };
 
+ENABLE_OPERATORS_ON(Color)
+
 
 ////
 //// Inline functions