|
Boost : |
From: Noel Yap (Noel.Yap_at_[hidden])
Date: 2003-05-04 18:15:59
"Justin M. Lewis" wrote:
>
> Again, there's no way to write the functions in the example with return
> values, so out params are necessary. And, while I'll admit, again, that the
> example isn't great, the point is clear.
I still don't understand. What's wrong with:
ref< T > f(); // returns a reference to an uncopyable object, f owns
the returned object
T& p = f().get();
in place of:
void f( out< T > p_ );
T p;
f( out( p ) );
Noel
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk