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
Branches
Tags
No related merge requests found
......@@ -162,8 +162,11 @@ parseArgs(int argc, char **argv) {
case 'b':
if (optarg) {
params.bootstrap = splitPort((optarg[0] == '=') ? optarg+1 : optarg);
if (not params.bootstrap.first.empty() and params.bootstrap.second.empty())
params.bootstrap.second = std::to_string(DHT_DEFAULT_PORT);
if (not params.bootstrap.first.empty() and params.bootstrap.second.empty()){
std::stringstream ss;
ss << DHT_DEFAULT_PORT;
params.bootstrap.second = ss.str();
}
}
else
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