Boost logo

Boost :

From: Paul A Bristow (pbristow_at_[hidden])
Date: 2007-06-18 10:26:27


 

>-----Original Message-----
>From: boost-bounces_at_[hidden]
>[mailto:boost-bounces_at_[hidden]] On Behalf Of Martin Bonner
>Sent: 18 June 2007 14:49
>To: boost_at_[hidden]
>Subject: Re: [boost] Progress of Boost.SVG_Plot
>
>From: Paul A Bristow
>>
>> PS There IS a downside to chaining though - it means that one can't
>use
>> the name for a getter function - you can't get myplot.axis_color() to
>> return the color.
>Yes you can. You just have two overloads:
>
> color axis_color() const; // Getter.
> plot& axis_color(color newColor); // Chainable setter.
>

Doh - of course.

Paul

---
Paul A Bristow
Prizet Farmhouse, Kendal, Cumbria UK LA8 8AB
+44 1539561830 & SMS, Mobile +44 7714 330204 & SMS
pbristow_at_[hidden]
 

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