microsoft pubseekoff有bug吗?

时间:2017-12-14 20:20:34

标签: c++ visual-c++

考虑下面的代码(Visual Studio 2015/2017)

std::wostringstream stm;
stm << L"12345";
std::wcout << stm.rdbuf()->pubseekoff(std::ios_base::cur, 0, std::ios_base::out) << L"\n"
stm << L"67890";
std::wcout << stm.str();

我看到了

1
167890

但我希望看到

5
1234567890

这个微软的bug还是我有些不明白的东西?

0 个答案:

没有答案