From: Joost VandeVondele Date: Fri, 15 May 2020 17:37:56 +0000 (+0200) Subject: Workaround for older compiler X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=d116e27f0f6c89c887420890ffe61c6708ef5c08 Workaround for older compiler gcc < 5 doesn't fully support the c++11 `std::is_trivially_copyable::value` Remove it, as it is not essential. fixes https://github.com/official-stockfish/Stockfish/issues/2681 closes https://github.com/official-stockfish/Stockfish/pull/2682 No functional change. --- diff --git a/src/syzygy/tbprobe.cpp b/src/syzygy/tbprobe.cpp index 843f049a..adc45d58 100644 --- a/src/syzygy/tbprobe.cpp +++ b/src/syzygy/tbprobe.cpp @@ -414,7 +414,6 @@ class TBTables { return (TBTable*)(Type == WDL ? (void*)wdl : (void*)dtz); } }; - static_assert(std::is_trivially_copyable::value, ""); static constexpr int Size = 1 << 12; // 4K table, indexed by key's 12 lsb static constexpr int Overflow = 1; // Number of elements allowed to map to the last bucket