|
Boost : |
From: rogeeff (rogeeff_at_[hidden])
Date: 2001-12-21 09:58:12
--- In boost_at_y..., Kostya Altukhov <kostya_at_s...> wrote:
> rogeeff wrote:
>
> >>printf("%2$02d/%3$02d/%1$04d", year, month, day);
> >>
> >Why not like this:
> >
> >BOOST_START_FORMAT_DEFINITION( classic_date_format, 3
(int,int,int))
> > arg1 << '-' << arg2 << '-' << arg3
> >BOOST_END_FORMAT_DEFINITION
> >
>
> All macro solutions require recompilation, therefore they
> are not acceptable for real-world needs.
> Everything that requires recompilation is not acceptable.
Macros are used only as a helper facility for format *definition*.
You can always have separate mechanism to support runtime cjange of
the format.
>
> Best wishes,
> Kostya
Gennadiy.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk