M
mathieu
Hello,
Is there a way to construct a std::istringstream from a buffer of
char and avoid copying the array of bytes ?
const char s[] = "Hello, World";
std::string str(s);
std::istringstream is;
is.str( str );
Thanks
Mathieu
Is there a way to construct a std::istringstream from a buffer of
char and avoid copying the array of bytes ?
const char s[] = "Hello, World";
std::string str(s);
std::istringstream is;
is.str( str );
Thanks
Mathieu