Boost logo

Boost :

From: Martin Bonner (Martin.Bonner_at_[hidden])
Date: 2007-06-18 09:48:48


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.

-- 
Martin Bonner
Project Leader
PI SHURLOK LTD
Telephone: +44 1223 441434 / 203894 (direct)
Fax: +44 1223 203999
Email: martin.bonner_at_[hidden]
www.pi-shurlok.com

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