mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 06:17:49 +00:00
Unify type alias declarations
The commit unifies the declaration of type aliases by replacing all typedefs with corresponding using statements. closing https://github.com/official-stockfish/Stockfish/pull/4412 No functional change
This commit is contained in:
committed by
Joost VandeVondele
parent
ff5a6f8df1
commit
564456a6a8
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user