mirror of
https://github.com/monero-project/monero.git
synced 2024-12-24 20:49:37 +00:00
fix lambda compile error on openbsd
This commit is contained in:
parent
8361d60aef
commit
11c933e137
5 changed files with 7 additions and 7 deletions
|
@ -81,7 +81,7 @@ namespace cryptonote
|
||||||
, "Specify data directory"
|
, "Specify data directory"
|
||||||
, tools::get_default_data_dir()
|
, tools::get_default_data_dir()
|
||||||
, {{ &arg_testnet_on, &arg_stagenet_on }}
|
, {{ &arg_testnet_on, &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])
|
if (testnet_stagenet[0])
|
||||||
return (boost::filesystem::path(val) / "testnet").string();
|
return (boost::filesystem::path(val) / "testnet").string();
|
||||||
else if (testnet_stagenet[1])
|
else if (testnet_stagenet[1])
|
||||||
|
|
|
@ -42,7 +42,7 @@ namespace daemon_args
|
||||||
, "Specify configuration file"
|
, "Specify configuration file"
|
||||||
, (daemonizer::get_default_data_dir() / std::string(CRYPTONOTE_NAME ".conf")).string()
|
, (daemonizer::get_default_data_dir() / std::string(CRYPTONOTE_NAME ".conf")).string()
|
||||||
, {{ &cryptonote::arg_testnet_on, &cryptonote::arg_stagenet_on }}
|
, {{ &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)
|
if (testnet_stagenet[0] && defaulted)
|
||||||
return (daemonizer::get_default_data_dir() / "testnet" /
|
return (daemonizer::get_default_data_dir() / "testnet" /
|
||||||
std::string(CRYPTONOTE_NAME ".conf")).string();
|
std::string(CRYPTONOTE_NAME ".conf")).string();
|
||||||
|
@ -57,7 +57,7 @@ namespace daemon_args
|
||||||
, "Specify log file"
|
, "Specify log file"
|
||||||
, (daemonizer::get_default_data_dir() / std::string(CRYPTONOTE_NAME ".log")).string()
|
, (daemonizer::get_default_data_dir() / std::string(CRYPTONOTE_NAME ".log")).string()
|
||||||
, {{ &cryptonote::arg_testnet_on, &cryptonote::arg_stagenet_on }}
|
, {{ &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)
|
if (testnet_stagenet[0] && defaulted)
|
||||||
return (daemonizer::get_default_data_dir() / "testnet" /
|
return (daemonizer::get_default_data_dir() / "testnet" /
|
||||||
std::string(CRYPTONOTE_NAME ".log")).string();
|
std::string(CRYPTONOTE_NAME ".log")).string();
|
||||||
|
@ -102,7 +102,7 @@ namespace daemon_args
|
||||||
, "Port for ZMQ RPC server to listen on"
|
, "Port for ZMQ RPC server to listen on"
|
||||||
, std::to_string(config::ZMQ_RPC_DEFAULT_PORT)
|
, std::to_string(config::ZMQ_RPC_DEFAULT_PORT)
|
||||||
, {{ &cryptonote::arg_testnet_on, &cryptonote::arg_stagenet_on }}
|
, {{ &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)
|
if (testnet_stagenet[0] && defaulted)
|
||||||
return std::to_string(config::testnet::ZMQ_RPC_DEFAULT_PORT);
|
return std::to_string(config::testnet::ZMQ_RPC_DEFAULT_PORT);
|
||||||
if (testnet_stagenet[1] && defaulted)
|
if (testnet_stagenet[1] && defaulted)
|
||||||
|
|
|
@ -39,7 +39,7 @@ namespace nodetool
|
||||||
, "Port for p2p network protocol"
|
, "Port for p2p network protocol"
|
||||||
, std::to_string(config::P2P_DEFAULT_PORT)
|
, std::to_string(config::P2P_DEFAULT_PORT)
|
||||||
, {{ &cryptonote::arg_testnet_on, &cryptonote::arg_stagenet_on }}
|
, {{ &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)
|
if (testnet_stagenet[0] && defaulted)
|
||||||
return std::to_string(config::testnet::P2P_DEFAULT_PORT);
|
return std::to_string(config::testnet::P2P_DEFAULT_PORT);
|
||||||
else if (testnet_stagenet[1] && defaulted)
|
else if (testnet_stagenet[1] && defaulted)
|
||||||
|
|
|
@ -2117,7 +2117,7 @@ namespace cryptonote
|
||||||
, "Port for RPC server"
|
, "Port for RPC server"
|
||||||
, std::to_string(config::RPC_DEFAULT_PORT)
|
, std::to_string(config::RPC_DEFAULT_PORT)
|
||||||
, {{ &cryptonote::arg_testnet_on, &cryptonote::arg_stagenet_on }}
|
, {{ &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)
|
if (testnet_stagenet[0] && defaulted)
|
||||||
return std::to_string(config::testnet::RPC_DEFAULT_PORT);
|
return std::to_string(config::testnet::RPC_DEFAULT_PORT);
|
||||||
else if (testnet_stagenet[1] && defaulted)
|
else if (testnet_stagenet[1] && defaulted)
|
||||||
|
|
|
@ -145,7 +145,7 @@ struct options {
|
||||||
"shared-ringdb-dir", tools::wallet2::tr("Set shared ring database path"),
|
"shared-ringdb-dir", tools::wallet2::tr("Set shared ring database path"),
|
||||||
get_default_ringdb_path(),
|
get_default_ringdb_path(),
|
||||||
testnet,
|
testnet,
|
||||||
[](bool testnet, bool defaulted, std::string val) {
|
[](bool testnet, bool defaulted, std::string val)->std::string {
|
||||||
if (testnet)
|
if (testnet)
|
||||||
return (boost::filesystem::path(val) / "testnet").string();
|
return (boost::filesystem::path(val) / "testnet").string();
|
||||||
return val;
|
return val;
|
||||||
|
|
Loading…
Reference in a new issue