From fb0450d30924dde42c252bbd4b12149249229e50 Mon Sep 17 00:00:00 2001 From: casparcedro <dev@eclecticdimensions.com> Date: Sun, 6 Dec 2015 23:06:06 -0500 Subject: [PATCH] Updated tools/dhtnode.cpp to remove std::to_string Fixed for building with cygwin. --- tools/dhtnode.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/dhtnode.cpp b/tools/dhtnode.cpp index 0a0a9e02..d61b254b 100644 --- a/tools/dhtnode.cpp +++ b/tools/dhtnode.cpp @@ -153,8 +153,11 @@ main(int argc, char **argv) } else if (op == "b") { try { auto addr = splitPort(idstr); - if (not addr.first.empty() and addr.second.empty()) - addr.second = std::to_string(DHT_DEFAULT_PORT); + if (not addr.first.empty() and addr.second.empty()){ + std::stringstream ss; + ss << DHT_DEFAULT_PORT; + addr.second = ss.str(); + } dht.bootstrap(addr.first.c_str(), addr.second.c_str()); } catch (const std::exception& e) { std::cout << e.what() << std::endl; -- GitLab