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); }