Fun with lambdas

Use lambda functions instead of has_positive_value()
and toggle_case()

No functional change.
This commit is contained in:
Marco Costalba
2015-01-21 11:33:53 +01:00
parent f54c44e6be
commit 2ca2c3f35b
3 changed files with 4 additions and 11 deletions

View File

@@ -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;