错误:没有匹配函数来调用' std :: strstream :: str(std :: string)'

时间:2016-10-18 21:53:23

标签: string c++11 stream

我试图使用stream.str清除std :: strstream("")(How do you clear a stringstream variable?)但是我得到了:

error: no matching function for call to 'std::strstream::str(std::string)'
note: candidate is:
note: char* std::strstream::str()

im includeing:#include <strstream>

0 个答案:

没有答案