Boost logo

Boost :

From: Kostya Altukhov (kostya_at_[hidden])
Date: 2001-12-21 05:12:39


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.

Best wishes,
Kostya


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