为什么这不能在 gcc 上编译?
#include <iostream>
#include <string>
int main() {
double f = 23.43;
std::wstring f_str = std::to_wstring(f);
std::wcout << f_str << std::endl;
return 0;
}
错误:
prog.cpp:在函数'int main()'中:
prog.cpp:6:26: 错误:“to_wstring”不是“std”的成员</p>