|
Boost : |
From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2004-02-23 13:51:28
"Samuel Krempp" <krempp_at_[hidden]> 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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk