From 143aaa2d28d939e598204035d7fabaee418f0ed7 Mon Sep 17 00:00:00 2001 From: hagen Date: Wed, 26 Oct 2016 00:00:00 +0000 Subject: [PATCH] * util.h : drop i2p::util::lexical_cast(), not used anymore (#314) --- util.h | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/util.h b/util.h index 77b94995..ee4aade6 100644 --- a/util.h +++ b/util.h @@ -5,9 +5,9 @@ #include #include #include -#include #ifdef ANDROID +#include namespace std { template @@ -22,18 +22,6 @@ namespace i2p { namespace util { - /** - wrapper arround boost::lexical_cast that "never" fails - */ - template - T lexical_cast(const std::string & str, const T fallback) { - try { - return boost::lexical_cast(str); - } catch ( ... ) { - return fallback; - } - } - namespace net { int GetMTU (const boost::asio::ip::address& localAddress);