|
Boost : |
From: Jonathan Turkanis (technews_at_[hidden])
Date: 2003-12-09 12:07:01
"Reece Dunn" <msclrhd_at_[hidden]> wrote in message
news:BAY7-F12BPqiKYKHEKU0001a221_at_hotmail.com...
>
> It also works on borland 5.5.1 :). I was thinking that it would be
possible
> to rewrite the deduction code using Boost.MPL, but didn't know that much
> about it. Great work!
>
Glad to help.
>
> >2. My gut feeling tells me that the library can be simplified a bit. I'm
> >particularly worried about the large number of object generators. Perhaps
a
> >more extensive tutorial would clear up some of my doubts. With your
> >permission, I'd like to hack on the code a bit to see if I can make it a
> >little simpler, without losing functionality.
>
> Feel free. My reasoning as to having the three variants was thus:
>
> [1] The base generator should supply default formatting type (char *) and
> Outputter.
> [2] Custom formatting types are supported as a function template
parameter.
> e.g.
>
> boost::io::formatlistex< wchar_t * >( l );
>
> Since you can't define a default value, this has to be a seperate
generator.
>
> [3] Custom outputters are supported as a specialist generator.
>
> boost::io::formatobout( o, ... );
>
> These have different names because of problems with locating the correct
> overloaded variant.
>
> Each of these variants is required for each outputter class to allow
maximum
> flexibility.
>
I have some ideas, but they're not very well developed. I'll let you know if
and when something comes of them.
Again, good work!
Jonathan
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk