Passing format strings to printing tuples
21 Sep
2011
21 Sep
'11
3:16 p.m.
The current tuple output mechanism wants me to say cout << formatting_manipulator << tuple; The expression (cout << formatting_manipulator) return an "embossed" cout, but currently it returns just cout with internal settings modified. The call must change things allocated within cout, like the standard manipulators do; although it is supported by the standard output, I find this approach so CFront-ish. How about using the syntax (cout << format_specification (tuple)) instead? Or even (cout << tuple / format_specification)? Chris
4803
Age (days ago)
4803
Last active (days ago)
0 comments
1 participants
participants (1)
-
Krzysztof Żelechowski