
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Scott McMurray Sent: 27 June 2007 14:21 To: boost@lists.boost.org Subject: Re: [boost] [Boost.Parameter] advice needed for Boost.svg_plot
Here's my case for why the benefits are compelling for
On 27/06/07, Jake Voytko <jakevoytko@gmail.com> wrote: plot_range(),
<snip>
It seems like with that much stuff for each point, it might be useful to have a struct for representing a point style. It seems plausible to want to pass that kind of thing around,
and nobody will want to forward all those options manually, named parameters or not.
This seems an important point - named parameters don't fully solve the problem.
That way you get the non-Boost.Parameter way of faking named parameters free: plot_range( my_plot, data.begin(), data.end(), point_style().set_shape(circle) .set_fill(blue) .set_outline(black) ); And you get the defaults for everything unspecified. You also might be able to get rid of most of the overloads and instead have functions that return point_style objects, or have some implicit constructors for the simple cases (like from a colour, to do the same thing as the overload you use in the examples).
Sounds well worth exploring. Paul --- Paul A Bristow Prizet Farmhouse, Kendal, Cumbria UK LA8 8AB +44 1539561830 & SMS, Mobile +44 7714 330204 & SMS pbristow@hetp.u-net.com