Problem with Util.cpp on Mac[Fixed]
Posted: Fri Oct 16, 2009 3:27 am
This line:
gives the following error.
I don't really understand the syntax here with all the << stuff (never seen it before), but it appears to me that Xcode doesn't like the fact that there are two of these operations in the same line with different data types. Either that or "categ" is of type wxString and _("Split") is of a different type, because I am pretty sure that wxT(":") and wxT("") are both of type wxChar.
Code: Select all
<< wxT('L') << (!categ.IsEmpty() ? categ : _("Split")) << (!subcateg.IsEmpty() ? wxT(":") : wxT("")) << subcateg << endl
Code: Select all
util.cpp:622: error: operands to ?: have different types 'wxString' and 'const wxChar*'