Fixes #3645: error on freebsd lambda return values forced to std::string

pull/88/head
rockhouse@users.noreply.github.com 6 years ago committed by moneromooo-monero
parent 8e64b61663
commit 1380b70e74
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

@ -165,7 +165,7 @@ int main(int argc, char* argv[])
"blackball-db-dir", "Specify blackball database directory",
get_default_db_path(),
{{ &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])
return (boost::filesystem::path(val) / "testnet").string();
else if (testnet_stagenet[1])

Loading…
Cancel
Save