mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 17:46:26 +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:
@@ -21,6 +21,8 @@
|
||||
#if !defined(DEPTH_H_INCLUDED)
|
||||
#define DEPTH_H_INCLUDED
|
||||
|
||||
#include "types.h"
|
||||
|
||||
////
|
||||
//// Types
|
||||
////
|
||||
@@ -33,5 +35,6 @@ enum Depth {
|
||||
DEPTH_NONE = -127 * ONE_PLY
|
||||
};
|
||||
|
||||
ENABLE_OPERATORS_ON(Depth);
|
||||
|
||||
#endif // !defined(DEPTH_H_INCLUDED)
|
||||
|
||||
Reference in New Issue
Block a user