mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 09:06:45 +08:00
Fun with lambdas
Use lambda functions instead of has_positive_value() and toggle_case() No functional change.
This commit is contained in:
@@ -81,7 +81,7 @@ void init(OptionsMap& o) {
|
||||
std::ostream& operator<<(std::ostream& os, const OptionsMap& om) {
|
||||
|
||||
for (size_t idx = 0; idx < om.size(); ++idx)
|
||||
for (auto it : om)
|
||||
for (auto& it : om)
|
||||
if (it.second.idx == idx)
|
||||
{
|
||||
const Option& o = it.second;
|
||||
|
||||
Reference in New Issue
Block a user