Ozgur Ugras BARAN wrote:
variable that we compare with empty string is of type const char, not string.. A possible way of doing it would be:!string(listings_param_table[idx].name).empty()
Ah... OK, I didn't get the thing. Why don't you use string in the first place (in listings_param_table) ?
But it is more difficult to read, IMHO.
Yes. You could as well use: if (listings_param_table[idx].name[0]) Abdel.
UgrasUse string::empty() instead. Abdel.