summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
87586b3)
With a hard-coded true, this declaration has no effect.
closes https://github.com/official-stockfish/Stockfish/pull/3295
No functional change.
template<Color Us, GenType Type>
ExtMove* generate_all(const Position& pos, ExtMove* moveList) {
template<Color Us, GenType Type>
ExtMove* generate_all(const Position& pos, ExtMove* moveList) {
+
+ static_assert(Type != LEGAL, "Unsupported type in generate_all()");
+
constexpr bool Checks = Type == QUIET_CHECKS; // Reduce template instantations
Bitboard target, piecesToMove = pos.pieces(Us);
constexpr bool Checks = Type == QUIET_CHECKS; // Reduce template instantations
Bitboard target, piecesToMove = pos.pieces(Us);
case NON_EVASIONS:
target = ~pos.pieces(Us);
break;
case NON_EVASIONS:
target = ~pos.pieces(Us);
break;
- default:
- static_assert(true, "Unsupported type in generate_all()");
}
moveList = generate_pawn_moves<Us, Type>(pos, moveList, target);
}
moveList = generate_pawn_moves<Us, Type>(pos, moveList, target);