|
From: Charles L. <da...@sy...> - 2001-03-26 04:12:24
|
>Looks good! Actually, we probably could return a const string&, >mRename is supposed to be constant anyway (but can't really be >declared that way.) no, we can't, since we must also be able to return s, which is a temporary variable. we really need to return a copy. (besides, as Rob mentioned, string is fairly capable of minimizing copies and does a good refcounting job by itself.) -- charles lechasseur - da...@sy... http://www3.sympatico.ca/danov/marathon/ "The butts of evil are awaiting my bootprints!" - Minsc |