|
Boost : |
From: Greg Colvin (gcolvin_at_[hidden])
Date: 2000-09-05 09:22:07
From: Peter Dimov <pdimov_at_[hidden]>
>
> To paraphrase Scott Meyers, ref<T> is an object that is designed to act,
> look and feel like the value it holds.
Then why call it 'ref'? Why not call it 'value'?
> Unfortunately, due to technical constraints, I had to replace r.f() with
> r->f() and added *r as a companion.
There is some precedent in existing practice (the
original Great Circle smart pointer library) for
using an operator() that returns a reference.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk