X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmisc.h;h=e3fb6435471510bb80a91304bc0b322fec4ff7ca;hp=9241834f3ea5bdcec135fe5bdd89436e33bc089e;hb=60c121f3b1ee7d5ced3435cc1718e4e6e6fd8383;hpb=3c07603dac03f0da20194097cf4eb1a396fea60d diff --git a/src/misc.h b/src/misc.h index 9241834f..e3fb6435 100644 --- a/src/misc.h +++ b/src/misc.h @@ -45,11 +45,10 @@ namespace Time { template struct HashTable { - HashTable() : table(Size, Entry()) {} Entry* operator[](Key key) { return &table[(uint32_t)key & (Size - 1)]; } private: - std::vector table; + std::vector table = std::vector(Size); };