
11 Apr
2011
11 Apr
'11
4:20 p.m.
Maxime van Noppen
Oh well, I just rewrote the operator<< calls as function calls and it becomes clear:
operator<<( operator<<(std::cout, fmt % "a" % "b" % "c"), // 1 fmt % 1 % 2 % 3); // 2
I think you could just write: std::cout << fmt % "a" % "b" % "c"; std::cout << fmt % 1 % 2 % 3; When the str(format&) or operator<<(std::ostream&, format&) is applied it should check and clear the format bindings. HTH, -Ryan