1

これが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>

4

2 に答える 2