mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 01:56:58 +08:00
Disable templetized operators by default
To avoid nasty bugs due to silently overriding of common operator we enable the templates on a type by type base using partial template specialization. No functional change, zero overhead at runtime. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -64,6 +64,11 @@ enum SquareDelta {
|
||||
DELTA_NN = 020, DELTA_NNE = 021
|
||||
};
|
||||
|
||||
ENABLE_OPERATORS_ON(Square);
|
||||
ENABLE_OPERATORS_ON(File);
|
||||
ENABLE_OPERATORS_ON(Rank);
|
||||
ENABLE_OPERATORS_ON(SquareDelta);
|
||||
|
||||
|
||||
////
|
||||
//// Constants
|
||||
|
||||
Reference in New Issue
Block a user