1、boost::array<char>
-> string
boost::array<char, 1024> buffer;
std::string data(buffer.begin(), buffer.end());
2、string
-> char *
string buffer;
char * c_buffer = (char *)buffer.c_str();
标签:类型转换,string,buffer,boost,C++,char,array,数据
来源: https://www.cnblogs.com/Balcher/p/16341883.html