Convert string to __uint128_t using stringstreams
问题 I'm trying to extract different types of data from a string. void readHeader(char buf[BUFFSIZE]) { std::istringstream hdr(buf); __uint128_t id_client; hdr >> id_client; // doesn't compile } I'm getting this error when I do that hdr >> id_client : Unix/UnixSocket.cpp:158:10: error: ambiguous overload for ‘operator>>’ in ‘hdr >> id_client’ Unix/UnixSocket.cpp:158:10: note: candidates are: In file included from /usr/include/c++/4.7/sstream:39:0, from Unix/UnixSocket.cpp:11: /usr/include/c++/4.7