
23 Feb
2004
23 Feb
'04
6:51 p.m.
"Samuel Krempp" <krempp@crans.ens-cachan.fr> wrote
but that's the problem : a temporary is still required... ... Why not store std::string fconcat = str(f); and then use it rather than f, to simply and clearly decouples temporary / c-string aspects from the formatting action ?
I see. With this info c_str() seems rather pointless. I was hit by using "f.str().c_str()" and got corrupted data, that was main motivation. Thanks for answer, /Pavel