I encounter a strange problem today:
Original code:
setText(string(L"Table\n");
Error message:
error: no matching function for call to`xxxxxxx::setText(string)'
xxxxx.h:134:note: candidates are: void xxxxxx::setText(string &)
The original code can be complied in VS, but not on g++.
To pass g++, I have to change the code to:
string lTemp(L"Table\n");
setText(string(lTemp);
g++ is stricter than VS.