Skip to content
Snippets Groups Projects
Commit 89549245 authored by casparcedro's avatar casparcedro
Browse files

Updated tools/tools_common.h to remove std::to_string

Fixed for building with cygwin.
parent fb0450d3
No related branches found
No related tags found
No related merge requests found
...@@ -162,8 +162,11 @@ parseArgs(int argc, char **argv) { ...@@ -162,8 +162,11 @@ parseArgs(int argc, char **argv) {
case 'b': case 'b':
if (optarg) { if (optarg) {
params.bootstrap = splitPort((optarg[0] == '=') ? optarg+1 : optarg); params.bootstrap = splitPort((optarg[0] == '=') ? optarg+1 : optarg);
if (not params.bootstrap.first.empty() and params.bootstrap.second.empty()) if (not params.bootstrap.first.empty() and params.bootstrap.second.empty()){
params.bootstrap.second = std::to_string(DHT_DEFAULT_PORT); std::stringstream ss;
ss << DHT_DEFAULT_PORT;
params.bootstrap.second = ss.str();
}
} }
else else
params.is_bootstrap_node = true; params.is_bootstrap_node = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment