【发布时间】:2016-03-03 21:45:37
【问题描述】:
我正在使用宽字符串文件流 std::wofstream 打开文件并读取其内容。我使用了标头 fstream。但是当我在 XCode 7 上编译这段代码时,它显示以下错误
No matching member function for call to 'open'
我的代码是这样的
header used <fstream>
std::wofstream out;
out.open(filename, std::ios::binary); <--- error
* filename is wide char string
注意:使用 Visual Studio 2015 在 Windows 上运行良好。
【问题讨论】:
标签: c++ xcode macos osx-yosemite