Boost logo

Boost :

From: Noel Yap (Noel.Yap_at_[hidden])
Date: 2003-05-03 20:20:22


"Justin M. Lewis" wrote:
> > OK. Why not:
> >
> > c_out< T > t;
> > f( t ); // this is an out parameter
> >
> > c_in_out< T > t;
> > f( t ); // this is an in/out parameter
> >
>
> Ok, so what's wrong with that? You still know it's an out param, or an
> in_out param, and can only be passed to functions that take the respective
> type. I think I removed the cast operators? I forget, I did locally, to
> fix that problem specifically.

Absolutely nothing is wrong with the above. The above was a response to
one of your posts saying that "my" solution has the same problem, that
the kind of parameter can't be seen from the call site.

Noel


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