boost之字符串与整型的转换

#include <boost\cast.hpp>
#include <boost\lexical_cast.hpp> 

signed char c = boost::numeric_cast<signed char>(97);

int ii = boost::lexical_cast<int>("127");
std::string s = boost::lexical_cast<std::string>(97);
原文地址:https://www.cnblogs.com/yuanxiaoping_21cn_com/p/2034416.html