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

This commit is contained in:
S 2018-06-04 12:02:06 +02:00
parent 8a7b3ff138
commit afed9787cd
1 changed files with 1 additions and 1 deletions

View File

@ -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])