Boost logo

Boost :

From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2007-06-19 01:23:41


Jeremy Maitin-Shepard wrote:
> Andrey Semashev <andysem_at_[hidden]> writes:
>
>> Printf is not a solution since there may be radical differences in
>> phrase composition in different languages.
>
> Indeed, it is true that printf is not perfect, because it requires that
> the arguments are referenced in the same order that they are specified
> in the source code, and that they can only be referenced exactly once.
> Very simple extensions can be used to support that, however, such as
> allowing arguments to be referenced by number (or perhaps by a name) and
> thereby provide a suitable solution.

You just described the Boost.Format library.

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk