Boost logo

Boost Users :

Subject: [Boost-users] Passing format strings to printing tuples
From: Krzysztof Żelechowski (giecrilj_at_[hidden])
Date: 2011-09-21 11:16:19


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net