|
Boost : |
From: Samuel Krempp (krempp_at_[hidden])
Date: 2001-07-02 14:25:52
> > assert( (formatter.print() %-1 %-2 %-3).str() == "-1 -2 -3 \n");
>
> I like this functionality; I suspect it could be very useful for
> complex formats. However, I think the logic expressed by the 'print()'
> call is not printing at all, but 'clear'-ing the formatting object,
> which has gotten bound to certain sets of arguments.
not, it's the opposite : print() is cloning the object.
I should call it clone(), btw.
It is not possible currently to rpovide clearing.
(It would be esay to implement though. It would just require twice more
strings being stored)
-- Sam
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk