二元运算符“<<”不能应用于类型 "wostream" 和 "string" 的表达式

binary operator "<<" can't be applied to the expressions of type "wostream" and "string"

我将此消息打印为错误

binary operator "<<" can't be applied to the expressions of type "wostream" and "string".

CLion 的检查员(我的 IDE),只要我的代码看起来像这样。

 stringstream ss;
            ss << "Foo baré féé bar"
               << someObj->aStdStringProperty << endl;

(故意像“é”这样的口音)

它编译和链接都很好,实际上是字符串成员部分导致它抛出错误。

仅供参考,我不是写这篇文章的人,这是我正在从事的项目。

我不习惯字符串、wostreams、w_char 和所有 C++ 中的东西,所以我有点困惑是我的 IDE 太苛刻了还是我自己误解了我的lessons/readings.

提前致谢!

确实是CLion的一个bug,最近修复了:)

Bug Report Page

Clion CLion 2016.3.4

谢谢你的想法:)