[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] F and .str()
From: |
Nathaniel Smith |
Subject: |
Re: [Monotone-devel] F and .str() |
Date: |
Thu, 15 Feb 2007 11:28:09 -0800 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
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 that (?)
> Does it make any difference?
It's an "operator<<(ostream &, formatter object)" overload or
something, but yeah, if it works it should be just the same either
way.
-- Nathaniel
--
So let us espouse a less contested notion of truth and falsehood, even
if it is philosophically debatable (if we listen to philosophers, we
must debate everything, and there would be no end to the discussion).
-- Serendipities, Umberto Eco