From 1cd415a3ae20e02dbbc2fe2cf2ef8595a69d81c4 Mon Sep 17 00:00:00 2001 From: hagen Date: Fri, 4 Nov 2016 00:00:00 +0000 Subject: [PATCH] * BOB.cpp : boost::lexical_cast -> std::stoi --- BOB.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/BOB.cpp b/BOB.cpp index d68c798f..466130d4 100644 --- a/BOB.cpp +++ b/BOB.cpp @@ -1,5 +1,4 @@ #include -#include #include "Log.h" #include "ClientContext.h" #include "BOB.h" @@ -459,7 +458,7 @@ namespace client void BOBCommandSession::OutportCommandHandler (const char * operand, size_t len) { LogPrint (eLogDebug, "BOB: outport ", operand); - m_OutPort = boost::lexical_cast(operand); + m_OutPort = std::stoi(operand); if (m_OutPort >= 0) SendReplyOK ("outbound port set"); else @@ -476,7 +475,7 @@ namespace client void BOBCommandSession::InportCommandHandler (const char * operand, size_t len) { LogPrint (eLogDebug, "BOB: inport ", operand); - m_InPort = boost::lexical_cast(operand); + m_InPort = std::stoi(operand); if (m_InPort >= 0) SendReplyOK ("inbound port set"); else