Jean-Marc Lasgouttes wrote:
"Uwe" == Uwe Stöhr <[EMAIL PROTECTED]> writes:
Uwe> Now I'm confused as Abdel stated two days ago I should better use
Uwe> the .clear() method and not string().

I think Abdel referred to something like
  tmp = string();
this is a bit different.

Indeed. Given "string tmp;"

bad style (but all corrects):
  tmp = "";
  tmp = string("");
  tmp = string();

good style:
  tmp.clear();


Given "string foo(...)"

bad style:
  return "";
  return string("");

good style:
  return string();

Abdel.

Reply via email to