It's a sort of duplicate of this question. I followed the recommendations (I think) and included that <string>
but the exact same error is thrown at my face :
error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion)
#include <string>
#include <iostream>
using namespace std;
int main() {
string texte;
texte = "pouet";
wcout << texte << endl;
return 0;
}
EDIT: I not proud at all to say the issue was caused by the fact I did not selected the correct project as the "starting project". Visual Studio is kinda hard to apprehend… However, the initial real issue concerned my real project, and was about standard string that cannot be output via wcout
. I reformatted the question to re-orient the subject accordingly. Downvote me as you wish, I deserve it…
cout
doesn't help"… o.O? – Laundromat