
3 Jul
2007
3 Jul
'07
2:24 p.m.
on Fri Jun 15 2007, "Jake Voytko" <jakevoytko-AT-gmail.com> wrote:
I think if I were going this route (and I'm starting to see its merits, but more on that in a second), I would have all "set" functions that work in a chaining manner, and if I wanted to extend functionality as above, do as follows:
void my_settings(svg_plot& plot) { my_plot . set_axis_color() . set_axis_line_width() . set_axis_line_style() // snip }
This is exactly what Boost.Parameter is for. Only it's much, much better :-) -- Dave Abrahams Boost Consulting http://www.boost-consulting.com The Astoria Seminar ==> http://www.astoriaseminar.com