Boost logo

Boost :

From: rogeeff (rogeeff_at_[hidden])
Date: 2002-02-11 13:22:17

--- In boost_at_y..., Karl Nelson <kenelson_at_e...> wrote:

> If you make it a policy then the question becomes how to
> make a good dividing line and make the syntax clear where
> one is used, ie...
> cout << format(policy1, gettext("1: %1$s %1%x"), c,d,e);
> cout << format(policy2, gettext("2: %1$s %2%x"), c,d,e);
> cout << format(policy2, gettext("3: %1$s %2%x"), c,d);
> So policy1 does accept multiple arguments, but policy2 doesn't
> but both accept more than specified arguements, but not policy3
> which would throw an exception. Wouldn't that get very very
> confusing to both the user and the translator?
> --Karl

No. Policy should be a type argument. So I would use either "format"
that support feature of one that does not. Syntax should not be


Boost list run by bdawes at, gregod at, cpdaniel at, john at