Refactor Stats Array

* Limit use of `StatsEntry` wrapper to arithmetic types
* Generalize `Stats` to `MultiArray` by discarding the template parameter `D`
* Allow `MultiArray::fill` to take any type assignable to element type
* Remove now-unused operator overloads on `StatsEntry`

closes https://github.com/official-stockfish/Stockfish/pull/5750

No functional change
This commit is contained in:
Shawn Xu
2025-01-12 21:13:14 +01:00
committed by Disservin
parent c47e6fcf84
commit 5370c3035e
4 changed files with 117 additions and 72 deletions
+1
View File
@@ -22,6 +22,7 @@
#include <limits>
#include "bitboard.h"
#include "misc.h"
#include "position.h"
namespace Stockfish {