From bbcb9af01f4db9b7dabfa72a9ee25a0eb13d39d6 Mon Sep 17 00:00:00 2001 From: hagen Date: Fri, 4 Nov 2016 00:00:00 +0000 Subject: [PATCH] * SAM.cpp : boost::lexical_cast -> std::stoi --- SAM.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/SAM.cpp b/SAM.cpp index 6707a6dc..87bad201 100644 --- a/SAM.cpp +++ b/SAM.cpp @@ -3,7 +3,6 @@ #ifdef _MSC_VER #include #endif -#include #include "Base.h" #include "Identity.h" #include "Log.h" @@ -420,7 +419,7 @@ namespace client LogPrint (eLogDebug, "SAM: datagram send: ", buf, " ", len); std::map params; ExtractParams (buf, params); - size_t size = boost::lexical_cast(params[SAM_PARAM_SIZE]), offset = data - buf; + size_t size = std::stoi(params[SAM_PARAM_SIZE]), offset = data - buf; if (offset + size <= len) { if (m_Session) @@ -819,7 +818,7 @@ namespace client auto it = params->find (SAM_PARAM_SIGNATURE_TYPE); if (it != params->end ()) // TODO: extract string values - signatureType = boost::lexical_cast (it->second); + signatureType = std::stoi(it->second); } localDestination = i2p::client::context.CreateNewLocalDestination (true, signatureType, params); }