]> git.sesse.net Git - stockfish/blobdiff - src/syzygy/tbprobe.cpp
Unify type alias declarations
[stockfish] / src / syzygy / tbprobe.cpp
index bbfd819d3fa933488cc6a008bc0770fb0df6a64a..b594ac3714e5cf3e853289ebd09f0be03f1bd22b 100644 (file)
@@ -142,7 +142,7 @@ struct SparseEntry {
 
 static_assert(sizeof(SparseEntry) == 6, "SparseEntry must be 6 bytes");
 
-typedef uint16_t Sym; // Huffman symbol
+using Sym = uint16_t; // Huffman symbol
 
 struct LR {
     enum Side { Left, Right };
@@ -327,7 +327,7 @@ struct PairsData {
 // first access, when the corresponding file is memory mapped.
 template<TBType Type>
 struct TBTable {
-    typedef typename std::conditional<Type == WDL, WDLScore, int>::type Ret;
+    using Ret = typename std::conditional<Type == WDL, WDLScore, int>::type;
 
     static constexpr int Sides = Type == WDL ? 2 : 1;