fix lambda compile error on openbsd

This commit is contained in:
moneromooo-monero
2018-03-27 14:47:57 +01:00
parent 8361d60aef
commit 11c933e137
5 changed files with 7 additions and 7 deletions

View File

@@ -2117,7 +2117,7 @@ namespace cryptonote
, "Port for RPC server"
, std::to_string(config::RPC_DEFAULT_PORT)
, {{ &cryptonote::arg_testnet_on, &cryptonote::arg_stagenet_on }}
, [](std::array<bool, 2> testnet_stagenet, bool defaulted, std::string val) {
, [](std::array<bool, 2> testnet_stagenet, bool defaulted, std::string val)->std::string {
if (testnet_stagenet[0] && defaulted)
return std::to_string(config::testnet::RPC_DEFAULT_PORT);
else if (testnet_stagenet[1] && defaulted)