[Monotone-devel] F and .str()

2007-02-15 Thread Lapo Luchini
In the code I sometimes see: cout (F(...) % p1 %p2...).str() \n; other times just: cout F(...) % p1 %p2... \n; I guess the second form works because the formatter object has a string copy constructor or something like that (?) Does it make any difference? Lapo

Re: [Monotone-devel] F and .str()

2007-02-15 Thread Nathaniel Smith
On Thu, Feb 15, 2007 at 09:24:38AM +0100, Lapo Luchini wrote: In the code I sometimes see: cout (F(...) % p1 %p2...).str() \n; other times just: cout F(...) % p1 %p2... \n; I guess the second form works because the formatter object has a string copy constructor or something like