pick.push_back({sum, i.second});
}
int r = dns_random(sum);
- auto p = upper_bound(pick.begin(), pick.end(),r, [](int r, const decltype(pick)::value_type& a) { return r < a.first;});
+ auto p = upper_bound(pick.begin(), pick.end(), r, [](int rarg, const decltype(pick)::value_type& a) { return rarg < a.first; });
return p->second;
}
}
ComboAddress::addressOnlyHash aoh;
int r = aoh(bestwho) % sum;
- auto p = upper_bound(pick.begin(), pick.end(),r, [](int r, const decltype(pick)::value_type& a) { return r < a.first;});
+ auto p = upper_bound(pick.begin(), pick.end(), r, [](int rarg, const decltype(pick)::value_type& a) { return rarg < a.first; });
return p->second;
}
return fmt.str();
}
- catch(std::exception& e) {
- g_log<<Logger::Error<<"error: "<<e.what()<<endl;
+ catch(std::exception& ex) {
+ g_log<<Logger::Error<<"error: "<<ex.what()<<endl;
}
return std::string("error");
});
return fmt.str();
}
- catch(std::exception& e) {
- g_log<<Logger::Error<<"LUA Record xception: "<<e.what()<<endl;
+ catch(std::exception& ex) {
+ g_log<<Logger::Error<<"LUA Record xception: "<<ex.what()<<endl;
}
- catch(PDNSException& e) {
- g_log<<Logger::Error<<"LUA Record exception: "<<e.reason<<endl;
+ catch(PDNSException& ex) {
+ g_log<<Logger::Error<<"LUA Record exception: "<<ex.reason<<endl;
}
return std::string("unknown");
});