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
> 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
Telephone: +44 1223 441434 / 203894 (direct)
Fax: +44 1223 203999
Email: martin.bonner_at_[hidden]

Boost list run by bdawes at, gregod at, cpdaniel at, john at