From: Karl Nelson (kenelson_at_[hidden])
Date: 2001-12-22 17:02:50


> --- In boost_at_y..., Karl Nelson <kenelson_at_e...> wrote:
> > The big downside from this is the glue. How to I interpret this?
> >
> > cout << format("%1, %2")(hex)(a)(b) << endl;
>
> I personally like something like this:
> cout << format("{%g%1}, %2")(hex)(a)(b) << endl;
> where %g in the format string is glue argument

That won't work at all. The glue is invisible to the format and
thus you are going to send more irrelvent information to the
translator. Worse you will have to make the glue reorder.

  cout << format("{%g%2}, %1")(hex)(a)(b) << endl;

Where does the glue go to a or b.

  format(cout, "{%1$s}, %2$s") << hex << a << b;

the glue always goes to a.

--Karl